Skip to content

Commit f0f8674

Browse files
authored
Fix canvas not init issue (#283)
1 parent d02b074 commit f0f8674

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/graph/GraphCanvas.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const nodeSearchEnabled = computed<boolean>(
3333
() => settingStore.get('Comfy.NodeSearchBoxImpl') === 'default'
3434
)
3535
watch(nodeSearchEnabled, (newVal) => {
36-
comfyApp.canvas.allow_searchbox = !newVal
36+
if (comfyApp.canvas) comfyApp.canvas.allow_searchbox = !newVal
3737
})
3838
3939
let dropTargetCleanup = () => {}

0 commit comments

Comments
 (0)