🐛 Fix problems with empty position-data

This commit is contained in:
alonso.torres 2025-02-27 14:31:49 +01:00
parent 2cf3e37b7a
commit 3eae3178a2

View file

@ -35,5 +35,8 @@
;; Old components can have texts without position data that must be rendered via foreign key
(cond
(some? position-data) [:> svg/text-shape props]
is-component? [:> fo/text-shape props])))
(some? position-data)
[:> svg/text-shape props]
(or (nil? position-data) is-component?)
[:> fo/text-shape props])))