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 818d0c01b2
commit ee2c5fa72d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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