mirror of
https://github.com/penpot/penpot.git
synced 2025-06-04 06:51:37 +02:00
Only render shape if it is not nil.
This commit is contained in:
parent
16a322211e
commit
49b783273e
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@
|
||||||
|
|
||||||
(mx/defc shape-component
|
(mx/defc shape-component
|
||||||
[sid]
|
[sid]
|
||||||
(let [shape (get-in @*state* [:shapes sid])]
|
(when-let [shape (get-in @*state* [:shapes sid])]
|
||||||
(shape-wrapper shape)))
|
(shape-wrapper shape)))
|
||||||
|
|
||||||
(mx/defc page-svg
|
(mx/defc page-svg
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue