Skip to content

Commit

Permalink
Merge pull request #4521 from Shopify/fix-output-with-undefined-stable
Browse files Browse the repository at this point in the history
[stable] Avoid errors when trying to output empty variables
  • Loading branch information
gonzaloriestra authored Sep 25, 2024
2 parents 64de7e5 + cf73ca4 commit 0dd6efe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/nervous-coins-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/cli-kit': patch
---

Avoid outputContent errors with undefined variables
2 changes: 1 addition & 1 deletion packages/cli-kit/src/public/node/output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export function outputContent(

if (typeof token === 'string') {
output += token
} else {
} else if (token) {
const enumTokenOutput = token.output()

if (Array.isArray(enumTokenOutput)) {
Expand Down

0 comments on commit 0dd6efe

Please sign in to comment.