Fix TriggerWord Toggle not updating when all LoRAs are disabled

This commit is contained in:
Will Miao
2025-05-15 10:30:46 +08:00
parent 2fedd572ff
commit a562ba3746
2 changed files with 7 additions and 13 deletions

View File

@@ -155,7 +155,7 @@ export function collectActiveLorasFromChain(node, visited = new Set()) {
// Update trigger words for connected toggle nodes
export function updateConnectedTriggerWords(node, loraNames) {
const connectedNodeIds = getConnectedTriggerToggleNodes(node);
if (connectedNodeIds.length > 0 && loraNames.size > 0) {
if (connectedNodeIds.length > 0) {
fetch("/loramanager/get_trigger_words", {
method: "POST",
headers: { "Content-Type": "application/json" },