Skip to content

Commit 5079f47

Browse files
fix: do not render "value of stdout.lastframe() is undefined" if the output is an empty string (#2912)
Fixes #2907
1 parent e351afc commit 5079f47

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/funny-spies-melt.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"wrangler": patch
3+
---
4+
5+
fix: do not render "value of stdout.lastframe() is undefined" if the output is an empty string
6+
7+
Fixes #2907

packages/wrangler/src/utils/render.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ export const render = (tree: ReactElement): Instance => {
8383
});
8484

8585
return {
86-
output: stdout.lastFrame() || LASTFRAME_UNDEFINED,
86+
output: stdout.lastFrame() ?? LASTFRAME_UNDEFINED,
8787
stdout,
8888
stderr,
8989
cleanup: instance.cleanup,

0 commit comments

Comments
 (0)