Skip to content

Commit

Permalink
Null .ToString (#1676)
Browse files Browse the repository at this point in the history
  • Loading branch information
seunss authored Feb 4, 2025
1 parent 0a6925a commit cf666ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/old-dots-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@builder.io/mitosis': patch
---

check for null string
2 changes: 1 addition & 1 deletion packages/core/src/parsers/builder/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ const componentMappers: {
* If width if undefined, do not create a binding otherwise its JSX will
* be <Column width={} /> which is not valid due to the empty expression.
*/
...(col.width !== undefined && {
...(col.width != null && {
bindings: {
width: { code: col.width.toString() },
},
Expand Down

0 comments on commit cf666ff

Please sign in to comment.