Skip to content

Commit

Permalink
Null .ToString
Browse files Browse the repository at this point in the history
  • Loading branch information
seunss committed Feb 4, 2025
1 parent 93f7b26 commit a867dd5
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/core/src/parsers/builder/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,11 +391,12 @@ 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 && {
bindings: {
width: { code: col.width.toString() },
},
}),
...(col.width !== undefined &&
col.width !== null && {
bindings: {
width: { code: col.width.toString() },
},
}),
...(col.link && {
properties: {
link: col.link,
Expand Down

0 comments on commit a867dd5

Please sign in to comment.