Skip to content
Snippets Groups Projects
Commit 9666a207 authored by Maximilian Giller's avatar Maximilian Giller
Browse files

Fixed missing space id

parent 425b0483
No related branches found
No related tags found
No related merge requests found
import jQuery from "jquery"; import jQuery from "jquery";
import { state, graph } from "./editor"; import { state, graph } from "./editor";
import { saveGraphJson } from "../../datasets/datasets"; import { saveGraphJson } from "../../datasets/datasets";
import { SPACE } from "../../config";
/** /**
* Initiates all the handlers for button presses and input changes. * Initiates all the handlers for button presses and input changes.
...@@ -10,6 +11,6 @@ export function initInteractions() { ...@@ -10,6 +11,6 @@ export function initInteractions() {
state.clearSelectedItems(); state.clearSelectedItems();
}); });
jQuery("button#save").on("click", () => { 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
}); });
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment