mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-12 07:10:52 +08:00
Support previously saved workflows
This commit is contained in:
parent
341fe22b92
commit
d4e73878e2
@ -453,11 +453,6 @@ async function loadImageAsync(imageURL) {
|
||||
}
|
||||
|
||||
const MULTIIMAGEUPLOAD = (node, inputName, inputData, app) => {
|
||||
console.error("LOADDATA", node, inputName, inputData)
|
||||
if (typeof inputData === "string") {
|
||||
inputData = [inputData]
|
||||
}
|
||||
|
||||
const imagesWidget = node.addWidget("text", inputName, inputData, () => {})
|
||||
imagesWidget.disabled = true;
|
||||
|
||||
@ -488,6 +483,9 @@ const MULTIIMAGEUPLOAD = (node, inputName, inputData, app) => {
|
||||
var default_value = imagesWidget.value;
|
||||
Object.defineProperty(imagesWidget, "value", {
|
||||
set : function(value) {
|
||||
if (typeof value === "string") {
|
||||
value = [value]
|
||||
}
|
||||
this._real_value = value;
|
||||
},
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user