From 523dfc4b7a6925c3f7605ad29cd4d2720e4c23ce Mon Sep 17 00:00:00 2001 From: Palazzini Luca Date: Wed, 11 Sep 2024 20:48:10 +0200 Subject: [PATCH] Fix conditioning number names --- web/visual_area_prompt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/visual_area_prompt.js b/web/visual_area_prompt.js index 003ecc1..0adf568 100644 --- a/web/visual_area_prompt.js +++ b/web/visual_area_prompt.js @@ -142,7 +142,7 @@ app.registerExtension({ const count = (slot_tracker[name] || 0) + 1; slot_tracker[name] = count; // Update the slot name with the count if greater than 1 - slot.name = `${name}_${count}`; + slot.name = `${name}_${count - 1}`; } // Create a list of all dynamic inputs by filtering out static inputs. const dynamicIndices = this.inputs