Skip to content

Commit f23d7ee

Browse files
authored
examples: fix imagegen first step printing (#273)
1 parent ef411aa commit f23d7ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/image-generation/image-generation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async function main() {
2121
console.log('\nImage saved to output.png')
2222
} else if (part.total) {
2323
// Progress update
24-
process.stdout.write(`\rProgress: ${part.completed}/${part.total}`)
24+
process.stdout.write(`\rProgress: ${part.completed ?? 0}/${part.total}`)
2525
}
2626
}
2727
}

0 commit comments

Comments
 (0)