Only render shape if it is not nil.

This commit is contained in:
Andrey Antukh 2017-01-30 19:33:09 +01:00
parent 16a322211e
commit 49b783273e
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95

View file

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