From e2fcf67aecf1cf99827d890d1a31a68a3642022f Mon Sep 17 00:00:00 2001 From: bennykok Date: Wed, 25 Sep 2024 12:59:00 -0700 Subject: [PATCH] fix: graph load --- web-plugin/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web-plugin/index.js b/web-plugin/index.js index 95235b2..1246c56 100644 --- a/web-plugin/index.js +++ b/web-plugin/index.js @@ -313,6 +313,14 @@ const ext = { // This part of the code would depend on how the ComfyUI expects to receive and process the workflow data // For demonstration, let's assume there's a loadWorkflow method in the ComfyUI API if (comfyUIWorkflow && app && app.loadGraphData) { + try { + await window["app"].ui.settings.setSettingValueAsync( + "Comfy.Validation.Workflows", + false, + ); + } catch (error) { + console.warning("Error setting validation to false, is fine to ignore this", error); + } console.log("loadGraphData"); app.loadGraphData(comfyUIWorkflow); }