From dda6030804c78b21c83eb31f039c8e14641aa153 Mon Sep 17 00:00:00 2001 From: Michiel van der Geest Date: Thu, 19 Oct 2023 07:22:56 +0200 Subject: [PATCH] Added undefined check to text prop transformation. --- src/element.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/element.js b/src/element.js index 1442022b..d8673268 100644 --- a/src/element.js +++ b/src/element.js @@ -133,7 +133,7 @@ const transformations = { props.rotation = props.rotation * (Math.PI / 180) }, text(props) { - props.text = props.text?.toString() + props.text = props.text !== undefined && props.text.toString() }, textureColor(props) { if (!('color' in props)) {