mirror of
https://github.com/penpot/penpot.git
synced 2025-06-05 06:51:38 +02:00
🐛 Fix problems with empty position-data
This commit is contained in:
parent
2cf3e37b7a
commit
3eae3178a2
1 changed files with 5 additions and 2 deletions
|
@ -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])))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue