Merge pull request #5976 from penpot/hotfix-texts

🐛 Fix problems with empty position-data
This commit is contained in:
Alejandro
2025-02-27 15:33:25 +01:00
committed by GitHub
+5 -2
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])))