From 3ddf04fa31df3c131717caa876c2d3053d83d24a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Fri, 4 Dec 2020 10:54:32 +0100 Subject: [PATCH] :bug: Disallow creating a component for an artboard --- frontend/src/app/main/ui/workspace/context_menu.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/context_menu.cljs b/frontend/src/app/main/ui/workspace/context_menu.cljs index 4e98368ee..7f1a4bbf6 100644 --- a/frontend/src/app/main/ui/workspace/context_menu.cljs +++ b/frontend/src/app/main/ui/workspace/context_menu.cljs @@ -140,8 +140,9 @@ [:& menu-entry {:title (t locale "workspace.shape.menu.lock") :on-click do-lock-shape}]) - (when (or (nil? (:shape-ref shape)) - (> (count selected) 1)) + (when (and (or (nil? (:shape-ref shape)) + (> (count selected) 1)) + (not= (:type shape) :frame)) [:* [:& menu-separator] [:& menu-entry {:title (t locale "workspace.shape.menu.create-component")