Fix canvas not init issue (#283)

This commit is contained in:
Chenlei Hu
2024-08-03 10:48:54 -04:00
committed by GitHub
parent d02b074fa3
commit f0f867481d

View File

@@ -33,7 +33,7 @@ const nodeSearchEnabled = computed<boolean>(
() => settingStore.get('Comfy.NodeSearchBoxImpl') === 'default' () => settingStore.get('Comfy.NodeSearchBoxImpl') === 'default'
) )
watch(nodeSearchEnabled, (newVal) => { watch(nodeSearchEnabled, (newVal) => {
comfyApp.canvas.allow_searchbox = !newVal if (comfyApp.canvas) comfyApp.canvas.allow_searchbox = !newVal
}) })
let dropTargetCleanup = () => {} let dropTargetCleanup = () => {}