From 9666a207ba8aca2f77371cc089f219faaeccf2f6 Mon Sep 17 00:00:00 2001 From: Max <m.giller.dev@gmail.com> Date: Fri, 5 Nov 2021 15:50:18 +0100 Subject: [PATCH] Fixed missing space id --- editor/js/interactions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/js/interactions.js b/editor/js/interactions.js index a0583f1..0d22d22 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 }); } -- GitLab