Fix regression preventing the renaming of graph imports/exports (#3752)

fix : Node Renaming error
This commit is contained in:
Jatin Bharti 2026-02-13 00:12:38 +05:30 committed by GitHub
parent 1ec75ab213
commit f4a5c77df8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@
const editor = getContext<Editor>("editor"); const editor = getContext<Editor>("editor");
const nodeGraph = getContext<NodeGraphState>("nodeGraph"); const nodeGraph = getContext<NodeGraphState>("nodeGraph");
const document = getContext<DocumentState>("document"); const documentState = getContext<DocumentState>("document");
let graph: HTMLDivElement | undefined; let graph: HTMLDivElement | undefined;
@ -29,7 +29,7 @@
$: gridDotRadius = 1 + Math.floor($nodeGraph.transform.scale - 0.5 + 0.001) / 2; $: gridDotRadius = 1 + Math.floor($nodeGraph.transform.scale - 0.5 + 0.001) / 2;
// Close the context menu when the graph view overlay is closed // 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 inputElement: HTMLInputElement;
let hoveringImportIndex: number | undefined = undefined; let hoveringImportIndex: number | undefined = undefined;