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
commit 531b002a5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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])))