mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 22:21:38 +02:00
Don't render shape if it is nil.
This commit is contained in:
parent
49b783273e
commit
12b9868f45
2 changed files with 11 additions and 11 deletions
|
@ -42,7 +42,7 @@
|
|||
(mx/defc component-container
|
||||
{:mixins [mx/reactive mx/static]}
|
||||
[id]
|
||||
(let [shape (mx/react (focus-shape id))]
|
||||
(when-let [shape (mx/react (focus-shape id))]
|
||||
(when-not (:hidden shape)
|
||||
(render-component shape))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue