diff --git a/frontend/src/components/views/Graph.svelte b/frontend/src/components/views/Graph.svelte index 1c9344b7..cef55a12 100644 --- a/frontend/src/components/views/Graph.svelte +++ b/frontend/src/components/views/Graph.svelte @@ -21,7 +21,7 @@ const editor = getContext("editor"); const nodeGraph = getContext("nodeGraph"); - const document = getContext("document"); + const documentState = getContext("document"); let graph: HTMLDivElement | undefined; @@ -29,7 +29,7 @@ $: gridDotRadius = 1 + Math.floor($nodeGraph.transform.scale - 0.5 + 0.001) / 2; // Close the context menu when the graph view overlay is closed - $: if (!$document.graphViewOverlayOpen) nodeGraph.closeContextMenu(); + $: if (!$documentState.graphViewOverlayOpen) nodeGraph.closeContextMenu(); let inputElement: HTMLInputElement; let hoveringImportIndex: number | undefined = undefined;