Correct thumbnail parsing

This commit is contained in:
space-nuko
2023-05-18 00:18:23 -05:00
parent f5aca8b371
commit 2071e51827
3 changed files with 24 additions and 24 deletions

View File

@@ -63,7 +63,7 @@ export default class ComfyPickImageNode extends ComfyGraphNode {
override onExecute() {
const data = this.getInputData(0)
const index = this.getInputData(1)
const index = this.getInputData(1) || 0
this.setValue(data, index);
if (this._image == null) {