Fix node size

This commit is contained in:
Will Miao
2025-03-03 05:32:54 +08:00
parent 6db4ff3bd6
commit 1281ae29cb
4 changed files with 28 additions and 15 deletions

View File

@@ -89,15 +89,13 @@ app.registerExtension({
node.lorasWidget = result.widget;
// get the input widget and set a callback
// Update input widget callback
const inputWidget = node.widgets[0];
inputWidget.callback = (value) => {
// Prevent recursive calls
if (isUpdating) return;
isUpdating = true;
try {
// Merge the loras data with widget value
const currentLoras = node.lorasWidget.value || [];
const mergedLoras = mergeLoras(value, currentLoras);