From 49b783273ea69acd8500555ad2b62a53dff1b1e9 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 30 Jan 2017 19:33:09 +0100 Subject: [PATCH] Only render shape if it is not nil. --- frontend/src/uxbox/main/exports.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/uxbox/main/exports.cljs b/frontend/src/uxbox/main/exports.cljs index 57161ab740..64f99e0db1 100644 --- a/frontend/src/uxbox/main/exports.cljs +++ b/frontend/src/uxbox/main/exports.cljs @@ -44,7 +44,7 @@ (mx/defc shape-component [sid] - (let [shape (get-in @*state* [:shapes sid])] + (when-let [shape (get-in @*state* [:shapes sid])] (shape-wrapper shape))) (mx/defc page-svg