Skip to content

Commit

Permalink
Support previously saved workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
space-nuko committed Jun 2, 2023
1 parent 50d8044 commit bf32916
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions web/scripts/widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -487,6 +482,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;
},

Expand Down

0 comments on commit bf32916

Please sign in to comment.