From 7ec3e1c0c8393366f5273f39ccca5e01d271bc74 Mon Sep 17 00:00:00 2001 From: bennykok Date: Sat, 17 Feb 2024 23:47:42 +0800 Subject: [PATCH] fix: comfy deploy in empty graph --- web-plugin/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/web-plugin/index.js b/web-plugin/index.js index 1c7c760..a5ac60d 100644 --- a/web-plugin/index.js +++ b/web-plugin/index.js @@ -450,13 +450,18 @@ function addButton() { existingDependencies: existing_workflow.dependencies, }); + // Need to find a way to include this if this is not included in comfyui-json level if ( - !deps.custom_nodes["https://github.com/BennyKok/comfyui-deploy"] || + !deps.custom_nodes["https://github.com/BennyKok/comfyui-deploy"] && !deps.custom_nodes["https://github.com/BennyKok/comfyui-deploy.git"] ) deps.custom_nodes["https://github.com/BennyKok/comfyui-deploy"] = { url: "https://github.com/BennyKok/comfyui-deploy", install_type: "git-clone", + hash: + snapshot?.git_custom_nodes?.[ + "https://github.com/BennyKok/comfyui-deploy" + ]?.hash ?? "HEAD", name: "ComfyUI Deploy", };