From af1d00a49cf871909135fbef91eb0d50849a7872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E9=9B=AA=E5=B3=B0?= Date: Tue, 25 Mar 2025 20:30:58 +0800 Subject: [PATCH] adapte ComfyUI-frontend 1.15.1 --- static/js/easyapi.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/js/easyapi.js b/static/js/easyapi.js index d882e76..35327c6 100644 --- a/static/js/easyapi.js +++ b/static/js/easyapi.js @@ -740,13 +740,14 @@ app.registerExtension({ if (index == 0) { let num = parseInt(node.inputs[i].name.replace(input_name, "")) if (num > 1) { - node.removeInput(i) + node.inputs.splice(i, 1); } } } for (let i = node.outputs.length - 1; i > out_fixed_num; i--) { removeOutSoltAndLink(node, i); } + node.setSize(node.computeSize()); } } }