Skip to content

Commit

Permalink
Update image_mixlab.js
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowcz007 committed Aug 29, 2024
1 parent a5a656d commit d908024
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/javascript/image_mixlab.js
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ app.registerExtension({
let imagePreview = node.widgets.filter(w => w.name == 'image_base64')[0]
// console.log('#LoadImagesToBatch', imagesWidget.value?.base64)
let imagesDiv = imagePreview.div.querySelector('.images_preview')

imagesDiv.innerHTML = ''
for (const d of imagesWidget.value?.base64 || []) {
let im = createInputImageForBatch(d, imagesWidget)
imagesDiv.appendChild(im)
Expand All @@ -873,7 +873,7 @@ app.registerExtension({
let imagePreview = node.widgets.filter(w => w.name == 'image_base64')[0]

let imagesDiv = imagePreview?.div?.querySelector('.images_preview')

imagesDiv.innerHTML = ''
for (const d of imagesWidget.value?.base64 || []) {
let im = createInputImageForBatch(d, imagesWidget)
imagesDiv.appendChild(im)
Expand Down

0 comments on commit d908024

Please sign in to comment.