mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
fix: use existing store references in useEventListener
Amp-Thread-ID: https://ampcode.com/threads/T-019bfb9a-f027-75d8-9859-26428d3025eb Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
@@ -178,6 +178,7 @@ const settingStore = useSettingStore()
|
||||
const nodeDefStore = useNodeDefStore()
|
||||
const workspaceStore = useWorkspaceStore()
|
||||
const canvasStore = useCanvasStore()
|
||||
const workflowStore = useWorkflowStore()
|
||||
const executionStore = useExecutionStore()
|
||||
const toastStore = useToastStore()
|
||||
const colorPaletteStore = useColorPaletteStore()
|
||||
@@ -426,10 +427,10 @@ watch(
|
||||
}
|
||||
)
|
||||
useEventListener(
|
||||
() => useCanvasStore().canvas?.canvas,
|
||||
() => canvasStore.canvas?.canvas,
|
||||
'litegraph:set-graph',
|
||||
() => {
|
||||
useWorkflowStore().updateActiveGraph()
|
||||
workflowStore.updateActiveGraph()
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user