From f0f867481d975905d095fc46a5533bd8a63468a6 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Sat, 3 Aug 2024 10:48:54 -0400 Subject: [PATCH] Fix canvas not init issue (#283) --- src/components/graph/GraphCanvas.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/graph/GraphCanvas.vue b/src/components/graph/GraphCanvas.vue index 4c5411ead..685a8a39e 100644 --- a/src/components/graph/GraphCanvas.vue +++ b/src/components/graph/GraphCanvas.vue @@ -33,7 +33,7 @@ const nodeSearchEnabled = computed( () => settingStore.get('Comfy.NodeSearchBoxImpl') === 'default' ) watch(nodeSearchEnabled, (newVal) => { - comfyApp.canvas.allow_searchbox = !newVal + if (comfyApp.canvas) comfyApp.canvas.allow_searchbox = !newVal }) let dropTargetCleanup = () => {}