From 45e76bc38b462ff575e849e00fa307fca0adf56e Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Thu, 22 Jun 2023 11:36:31 +0200 Subject: [PATCH] :bug: Fix delete component annotation --- frontend/src/app/main/data/workspace.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/data/workspace.cljs b/frontend/src/app/main/data/workspace.cljs index cb527a7298..966af4fdd2 100644 --- a/frontend/src/app/main/data/workspace.cljs +++ b/frontend/src/app/main/data/workspace.cljs @@ -1377,7 +1377,7 @@ (not (contains? #{:group :bool} (:type head)))) no-bool-shapes? (->> all-selected (some (comp #{:frame :text} :type)))] - + (if (and (some? shape) (not (contains? selected (:id shape)))) (rx/concat (rx/of (dws/select-shape (:id shape))) @@ -2174,7 +2174,7 @@ "Update the component with the given annotation" [id annotation] (dm/assert! (uuid? id)) - (dm/assert! (string? annotation)) + (dm/assert! (or (nil? annotation) (string? annotation))) (ptk/reify ::update-component-annotation ptk/WatchEvent (watch [it state _]