mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
Fix regression preventing the renaming of graph imports/exports (#3752)
fix : Node Renaming error
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user