Don't render shape if it is nil.

This commit is contained in:
Andrey Antukh 2017-01-30 19:49:35 +01:00
parent 49b783273e
commit 12b9868f45
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
2 changed files with 11 additions and 11 deletions

View file

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