diff --git a/editor/js/interactions.js b/editor/js/interactions.js
index a0583f13c4e49bc366a44c5047fa118d4e3fc571..0d22d22bda3c46ed24ca503cddee2c6df2ca4a46 100644
--- a/editor/js/interactions.js
+++ b/editor/js/interactions.js
@@ -1,6 +1,7 @@
 import jQuery from "jquery";
 import { state, graph } from "./editor";
 import { saveGraphJson } from "../../datasets/datasets";
+import { SPACE } from "../../config";
 
 /**
  * Initiates all the handlers for button presses and input changes.
@@ -10,6 +11,6 @@ export function initInteractions() {
         state.clearSelectedItems();
     });
     jQuery("button#save").on("click", () => {
-        saveGraphJson(space_id, graph.getCleanData());    // space_id defined globaly through knowledge-space.php
+        saveGraphJson(SPACE, graph.getCleanData());    // space_id defined globaly through knowledge-space.php
     });
 }