From 2d779a44148f8661e10eba3003d2e3aac2209224 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 25 Jan 2023 14:03:25 +0100 Subject: [PATCH] :bug: Fix problem with empty text rendering --- frontend/src/app/main/ui/shapes/text.cljs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/main/ui/shapes/text.cljs b/frontend/src/app/main/ui/shapes/text.cljs index 48390ead1..26fdf23c7 100644 --- a/frontend/src/app/main/ui/shapes/text.cljs +++ b/frontend/src/app/main/ui/shapes/text.cljs @@ -8,7 +8,6 @@ (:require [app.common.text :as txt] [app.main.fonts :as fonts] - [app.main.ui.shapes.text.fo-text :as fo] [app.main.ui.shapes.text.svg-text :as svg] [app.util.object :as obj] [rumext.v2 :as mf])) @@ -28,6 +27,5 @@ (mf/with-memo [content] (load-fonts! content)) - (if (some? position-data) - [:> svg/text-shape props] - [:> fo/text-shape props]))) + (when (some? position-data) + [:> svg/text-shape props])))