diff --git a/frontend/src/components/tree_editor/DiagramVisualizer.tsx b/frontend/src/components/tree_editor/DiagramVisualizer.tsx index a8b6f8707..7e358c67d 100644 --- a/frontend/src/components/tree_editor/DiagramVisualizer.tsx +++ b/frontend/src/components/tree_editor/DiagramVisualizer.tsx @@ -78,7 +78,7 @@ const DiagramVisualizer = memo( view, changeView, setGoBack, - subTreeName + subTreeName, }: { modelJson: any; setResultJson: Function; @@ -87,7 +87,7 @@ const DiagramVisualizer = memo( view: any; changeView: any; setGoBack: Function; - subTreeName:string; + subTreeName: string; }) => { // Initialize the model and the engine const model = useRef(new DiagramModel()); @@ -122,7 +122,7 @@ const DiagramVisualizer = memo( // Fixes uncomplete first serialization setTimeout(() => { console.log("Rendered!"); - setResultJson(model.current.serialize()) + setResultJson(model.current.serialize()); }, 1); return ( diff --git a/frontend/src/components/tree_editor/MainTreeEditorContainer.tsx b/frontend/src/components/tree_editor/MainTreeEditorContainer.tsx index 63955de64..5b547edbf 100644 --- a/frontend/src/components/tree_editor/MainTreeEditorContainer.tsx +++ b/frontend/src/components/tree_editor/MainTreeEditorContainer.tsx @@ -66,7 +66,7 @@ const MainTreeEditorContainer = ({ previousName: string, ) => { if (view === TreeViewType.Visualizer) { - return + return; } try { await saveSubtree(previousResultJson, projectName, previousName); @@ -125,7 +125,7 @@ const MainTreeEditorContainer = ({ saveSubtreeJson(resultJson, subTreeName); // Save the current subtree setTreeHierarchy((prevHierarchy) => { const newHierarchy = prevHierarchy.slice(0, -1); - console.log("SET") + console.log("SET"); setSubTreeName(newHierarchy[newHierarchy.length - 1] || ""); return newHierarchy; }); diff --git a/frontend/src/components/tree_editor/NodeMenu.tsx b/frontend/src/components/tree_editor/NodeMenu.tsx index c93fad6c8..9f3f62564 100644 --- a/frontend/src/components/tree_editor/NodeMenu.tsx +++ b/frontend/src/components/tree_editor/NodeMenu.tsx @@ -77,7 +77,7 @@ const NodeMenu = ({ view, changeView, setGoBack, - subTreeName + subTreeName, }: { projectName: string; onAddNode: Function; @@ -88,7 +88,7 @@ const NodeMenu = ({ view: TreeViewType; changeView: Function; setGoBack: Function; - subTreeName:string; + subTreeName: string; }) => { const [anchorEl, setAnchorEl] = useState(null); const [menuLabel, setMenuLabel] = useState(""); diff --git a/frontend/src/components/tree_editor/TreeEditor.tsx b/frontend/src/components/tree_editor/TreeEditor.tsx index d9aaec8e9..2b80d1042 100644 --- a/frontend/src/components/tree_editor/TreeEditor.tsx +++ b/frontend/src/components/tree_editor/TreeEditor.tsx @@ -59,7 +59,7 @@ const TreeEditor = memo( view: TreeViewType; changeView: Function; setSubTreeName: Function; - subTreeName:string; + subTreeName: string; setGoBack: Function; }) => { const settings = React.useContext(OptionsContext); @@ -207,7 +207,7 @@ const DiagramEditor = memo( setEditTagModalOpen, setCurrentNode, setGoBack, - subTreeName + subTreeName, }: { modelJson: any; setResultJson: Function; @@ -223,7 +223,7 @@ const DiagramEditor = memo( setEditTagModalOpen: Function; setCurrentNode: Function; setGoBack: Function; - subTreeName:string; + subTreeName: string; }) => { // VARS