mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-30 00:00:26 +08:00
patch for imagesendWidget
* consider node.images is undefined * ugly indentation
This commit is contained in:
parent
6f99837c76
commit
185f314f37
@ -46,7 +46,7 @@ function imagesendWidget(node, inputName, inputData, app) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function callback() {
|
async function callback() {
|
||||||
if(node.images.length < 1)
|
if(node.images == undefined || node.images.length < 1)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const image_name = node.images[0].filename;
|
const image_name = node.images[0].filename;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user