From a867dd5ac1922a5cea84962ddaaeec53ad9f5a0a Mon Sep 17 00:00:00 2001 From: Wale Date: Tue, 4 Feb 2025 11:22:25 -0500 Subject: [PATCH] Null .ToString --- packages/core/src/parsers/builder/builder.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/core/src/parsers/builder/builder.ts b/packages/core/src/parsers/builder/builder.ts index 5e2ac93ab3..3c34c8b003 100644 --- a/packages/core/src/parsers/builder/builder.ts +++ b/packages/core/src/parsers/builder/builder.ts @@ -391,11 +391,12 @@ const componentMappers: { * If width if undefined, do not create a binding otherwise its JSX will * be 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,