Fix renaming upload widget (#2554)

* Fix renaming upload widget

* Allow custom name
This commit is contained in:
pythongosssss 2024-01-16 13:58:54 +00:00 committed by GitHub
parent 5cc2688953
commit 8b4c19cecc

View File

@ -349,7 +349,7 @@ export class GroupNodeConfig {
}
if (config[0] === "IMAGEUPLOAD") {
if (!extra) extra = {};
extra.widget = `${prefix}${config[1]?.widget ?? "image"}`;
extra.widget = this.oldToNewWidgetMap[node.index]?.[config[1]?.widget ?? "image"] ?? "image";
}
if (extra) {