From 4709418ce4d2745b074d1b65cac2236c191d4e70 Mon Sep 17 00:00:00 2001 From: GenorTG Date: Mon, 9 Nov 2026 17:24:57 +0100 Subject: [PATCH] Fix H3 Action script iterating a number --- pyproject.toml | 2 +- web/promptforge_h3.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6e8917b..d87eacf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "ComfyUI-PromptForge" description = "ComfyUI prompt enhancement suite: model/config node with GPU-aware auto settings, prompt enhancer with a preset catalog, and a standalone config finder." -version = "1.28.10" +version = "1.28.11" license = { file = "LICENSE" } dependencies = [ "transformers", diff --git a/web/promptforge_h3.js b/web/promptforge_h3.js index f1b421a..90818f5 100644 --- a/web/promptforge_h3.js +++ b/web/promptforge_h3.js @@ -364,9 +364,9 @@ app.registerExtension({ const minimum = node.computeSize(); node.setSize([Math.max(saved?.[0] || node.size[0], 620), Math.max(saved?.[1] || node.size[1], minimum[1])]); }; - for (const number of (1, 2, 3)) find(`subject_${number}_from`)?.callback; + for (const number of [1, 2, 3]) find(`subject_${number}_from`)?.callback; const fromCallback = {}; - for (const number of (1, 2, 3)) { + for (const number of [1, 2, 3]) { const from = find(`subject_${number}_from`); if (!from) continue; fromCallback[number] = from.callback;