From f932f3efb11472561e612fe4c1737467af49078a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?luis=CE=B4=CE=BC?= Date: Tue, 25 Mar 2025 21:50:29 +0100 Subject: [PATCH] :sparkles: Filter variant by name on layers panel --- frontend/src/app/main/ui/workspace/sidebar/layers.cljs | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/app/main/ui/workspace/sidebar/layers.cljs b/frontend/src/app/main/ui/workspace/sidebar/layers.cljs index b242a03fb7..a1a88c05dd 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/layers.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/layers.cljs @@ -145,6 +145,7 @@ (conj :rect :circle :path :bool))] (or (= uuid/zero id) (and (or (str/includes? (str/lower (:name shape)) (str/lower search)) + (str/includes? (str/lower (:variant-name shape)) (str/lower search)) ;; Only for local development we allow search for ids. Otherwise will be hard ;; search for numbers or single letter shape names (ie: "A") (and *assert*