Fix function calls and formatting in PageComponent and NodeToolbarComponent
This commit is contained in:
parent
b2c6f67a48
commit
f4c3d445c4
2 changed files with 3 additions and 6 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -273,7 +273,7 @@ export default function NodeToolbarComponent({
|
|||
event.key === "g"
|
||||
) {
|
||||
event.preventDefault();
|
||||
handleSelectChange("ungroup")
|
||||
handleSelectChange("ungroup");
|
||||
}
|
||||
if (
|
||||
selected &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue