patch for imagesendWidget

* consider node.images is undefined
* ugly indentation
This commit is contained in:
Lt.Dr.Data 2023-03-23 10:36:05 +09:00
parent 6f99837c76
commit 185f314f37

View File

@ -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;