diff options
-rw-r--r-- | pages/index.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pages/index.tsx b/pages/index.tsx index 75b33d3..8770283 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -467,8 +467,10 @@ export function GraphPage() { break } case 'change-local-graph': { + const node = nodeByIdRef.current[message.data.id as string] + if (!node) break console.log(message) - handleLocal(nodeByIdRef.current[message.data.id as string], message.data.manipulation) + handleLocal(node, message.data.manipulation) break } default: |