Fix regression preventing the renaming of graph imports/exports (#3752)
fix : Node Renaming error
This commit is contained in:
parent
1ec75ab213
commit
f4a5c77df8
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
const editor = getContext<Editor>("editor");
|
||||
const nodeGraph = getContext<NodeGraphState>("nodeGraph");
|
||||
const document = getContext<DocumentState>("document");
|
||||
const documentState = getContext<DocumentState>("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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue