mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-21 03:40:16 +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) => {
|
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, () => {})
|
const imagesWidget = node.addWidget("text", inputName, inputData, () => {})
|
||||||
imagesWidget.disabled = true;
|
imagesWidget.disabled = true;
|
||||||
|
|
||||||
@ -488,6 +483,9 @@ const MULTIIMAGEUPLOAD = (node, inputName, inputData, app) => {
|
|||||||
var default_value = imagesWidget.value;
|
var default_value = imagesWidget.value;
|
||||||
Object.defineProperty(imagesWidget, "value", {
|
Object.defineProperty(imagesWidget, "value", {
|
||||||
set : function(value) {
|
set : function(value) {
|
||||||
|
if (typeof value === "string") {
|
||||||
|
value = [value]
|
||||||
|
}
|
||||||
this._real_value = value;
|
this._real_value = value;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user