Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
javizqh committed Oct 20, 2024
1 parent 969296b commit c9bbb7b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/tree_editor/DiagramVisualizer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const DiagramVisualizer = memo(
view,
changeView,
setGoBack,
subTreeName
subTreeName,
}: {
modelJson: any;
setResultJson: Function;
Expand All @@ -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());
Expand Down Expand Up @@ -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 (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const MainTreeEditorContainer = ({
previousName: string,
) => {
if (view === TreeViewType.Visualizer) {
return
return;
}
try {
await saveSubtree(previousResultJson, projectName, previousName);
Expand Down Expand Up @@ -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;
});
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/tree_editor/NodeMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const NodeMenu = ({
view,
changeView,
setGoBack,
subTreeName
subTreeName,
}: {
projectName: string;
onAddNode: Function;
Expand All @@ -88,7 +88,7 @@ const NodeMenu = ({
view: TreeViewType;
changeView: Function;
setGoBack: Function;
subTreeName:string;
subTreeName: string;
}) => {
const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);
const [menuLabel, setMenuLabel] = useState<string>("");
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/components/tree_editor/TreeEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const TreeEditor = memo(
view: TreeViewType;
changeView: Function;
setSubTreeName: Function;
subTreeName:string;
subTreeName: string;
setGoBack: Function;
}) => {
const settings = React.useContext(OptionsContext);
Expand Down Expand Up @@ -207,7 +207,7 @@ const DiagramEditor = memo(
setEditTagModalOpen,
setCurrentNode,
setGoBack,
subTreeName
subTreeName,
}: {
modelJson: any;
setResultJson: Function;
Expand All @@ -223,7 +223,7 @@ const DiagramEditor = memo(
setEditTagModalOpen: Function;
setCurrentNode: Function;
setGoBack: Function;
subTreeName:string;
subTreeName: string;
}) => {
// VARS

Expand Down

0 comments on commit c9bbb7b

Please sign in to comment.