Skip to content

Commit

Permalink
fix: do not render "value of stdout.lastframe() is undefined" if the …
Browse files Browse the repository at this point in the history
…output is an empty string (#2912)

Fixes #2907
  • Loading branch information
petebacondarwin committed May 5, 2023
1 parent e351afc commit 5079f47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/funny-spies-melt.md
@@ -0,0 +1,7 @@
---
"wrangler": patch
---

fix: do not render "value of stdout.lastframe() is undefined" if the output is an empty string

Fixes #2907
2 changes: 1 addition & 1 deletion packages/wrangler/src/utils/render.ts
Expand Up @@ -83,7 +83,7 @@ export const render = (tree: ReactElement): Instance => {
});

return {
output: stdout.lastFrame() || LASTFRAME_UNDEFINED,
output: stdout.lastFrame() ?? LASTFRAME_UNDEFINED,
stdout,
stderr,
cleanup: instance.cleanup,
Expand Down

0 comments on commit 5079f47

Please sign in to comment.