Skip to content

Commit f6d75c7

Browse files
committed
improve code
1 parent 5e6a759 commit f6d75c7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/scripts/app.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -380,12 +380,8 @@ export class ComfyApp {
380380
const combinedIndex = selectedIndex + 2
381381

382382
// for vueNodes mode
383-
let images = node.images
384-
if (!images) {
385-
const outputs = useNodeOutputStore().getNodeOutputs(node)
386-
387-
images = outputs?.images
388-
}
383+
const images =
384+
node.images ?? useNodeOutputStore().getNodeOutputs(node)?.images
389385

390386
ComfyApp.clipspace = {
391387
widgets: widgets,

0 commit comments

Comments
 (0)