diff --git a/src/editor/js/components/editor.tsx b/src/editor/js/components/editor.tsx
index 5821fde41301a2f616fed1446dc5d542a2fd5d23..cbabc024e9a72807ef78949492e7ae23df4afe9f 100644
--- a/src/editor/js/components/editor.tsx
+++ b/src/editor/js/components/editor.tsx
@@ -12,7 +12,9 @@ import { Link } from "../structures/graph/link";
 import { NodeTypesEditor } from "./nodetypeseditor";
 import { SpaceManager } from "./spacemanager";
 
-type propTypes = any;
+type propTypes = {
+    spaceId: string;
+};
 type stateTypes = {
     graph: Graph;
     visibleLabels: boolean;
@@ -72,9 +74,13 @@ export class Editor extends React.PureComponent<propTypes, stateTypes> {
             keys: {},
             graphWidth: 1000,
         };
+    }
 
-        // Load initial space
-        this.loadSpace("space");
+    componentDidMount() {
+        if (this.props.spaceId !== undefined) {
+            // Load initial space
+            this.loadSpace(this.props.spaceId);
+        }
     }
 
     /**