Fix function calls and formatting in PageComponent and NodeToolbarComponent

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-03-21 17:06:22 -03:00
commit f4c3d445c4
2 changed files with 3 additions and 6 deletions

View file

@ -100,10 +100,7 @@ export default function Page({
const clonedNodes = cloneDeep(nodes);
const clonedEdges = cloneDeep(edges);
const clonedSelection = cloneDeep(lastSelection);
updateIds(
{ nodes: clonedNodes, edges: clonedEdges },
clonedSelection!
);
updateIds({ nodes: clonedNodes, edges: clonedEdges }, clonedSelection!);
const { newFlow, removedEdges } = generateFlow(
clonedSelection!,
clonedNodes,
@ -488,7 +485,7 @@ export default function Page({
isVisible={selectionMenuVisible}
nodes={lastSelection?.nodes}
onClick={() => {
handleGroupNode()
handleGroupNode();
}}
/>
</ReactFlow>

View file

@ -273,7 +273,7 @@ export default function NodeToolbarComponent({
event.key === "g"
) {
event.preventDefault();
handleSelectChange("ungroup")
handleSelectChange("ungroup");
}
if (
selected &&