From 7c62a009ff41b23173bbe609083761b5f13bc591 Mon Sep 17 00:00:00 2001 From: Maximilian Giller <m.giller@tu-braunschweig.de> Date: Sat, 28 May 2022 22:35:14 +0200 Subject: [PATCH] Fixed missing this-bind, now graph selector working --- src/editor/js/components/editor.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/editor/js/components/editor.tsx b/src/editor/js/components/editor.tsx index acba44b..98ebfe0 100644 --- a/src/editor/js/components/editor.tsx +++ b/src/editor/js/components/editor.tsx @@ -26,6 +26,7 @@ export class Editor extends React.PureComponent<propTypes, stateTypes> { constructor(props: propTypes) { super(props); this.loadGraph = this.loadGraph.bind(this); + this.loadSpace = this.loadSpace.bind(this); // Set as new state this.state = { @@ -57,7 +58,6 @@ export class Editor extends React.PureComponent<propTypes, stateTypes> { public loadGraph(data: any): boolean { console.log("Starting to load new graph ..."); console.log(data); - console.log(Graph.parse(data)); // Create global objects const newState = new State(); @@ -126,6 +126,7 @@ export class Editor extends React.PureComponent<propTypes, stateTypes> { // }); // Set as new state + console.log(newGraph); this.setState({ state: newState, graph: newGraph, -- GitLab