Spaces:
Running
Running
Avoid unnecessary CRDT updates.
Browse files
lynxkite-app/web/src/workspace/Workspace.tsx
CHANGED
@@ -80,7 +80,9 @@ function LynxKiteFlow() {
|
|
80 |
if (!state.workspace.nodes) return;
|
81 |
if (!state.workspace.edges) return;
|
82 |
for (const n of state.workspace.nodes) {
|
83 |
-
n.dragHandle
|
|
|
|
|
84 |
}
|
85 |
setNodes([...state.workspace.nodes] as Node[]);
|
86 |
setEdges([...state.workspace.edges] as Edge[]);
|
|
|
80 |
if (!state.workspace.nodes) return;
|
81 |
if (!state.workspace.edges) return;
|
82 |
for (const n of state.workspace.nodes) {
|
83 |
+
if (n.dragHandle !== ".bg-primary") {
|
84 |
+
n.dragHandle = ".bg-primary";
|
85 |
+
}
|
86 |
}
|
87 |
setNodes([...state.workspace.nodes] as Node[]);
|
88 |
setEdges([...state.workspace.edges] as Edge[]);
|