From 1342dd3f3a62403f8d48957eda1740f678e156ba Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 18 Feb 2016 22:44:20 +0200 Subject: [PATCH] Do not render active menu when no menu is availabe (element options). --- src/uxbox/ui/workspace/sidebar/options.cljs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/uxbox/ui/workspace/sidebar/options.cljs b/src/uxbox/ui/workspace/sidebar/options.cljs index a279abbd59..cbc6c94ee7 100644 --- a/src/uxbox/ui/workspace/sidebar/options.cljs +++ b/src/uxbox/ui/workspace/sidebar/options.cljs @@ -504,9 +504,9 @@ :key (str "menu-" (:id menu)) :class (when selected? "selected")} (:icon menu)])] - (let [menu (get +menus-by-id+ active-menu) - menu (assoc menu :id active-menu)] - (-render-menu menu own shape local))]))) + (when-let [menu (get +menus-by-id+ active-menu)] + (let [menu (assoc menu :id active-menu)] + (-render-menu menu own shape local)))]))) (def ^:static ^:private options-menus (mx/component