mirror of
https://github.com/penpot/penpot.git
synced 2026-05-05 16:18:35 +00:00
🐛 Fix filter layers
This commit is contained in:
parent
677da04c43
commit
d96902f61d
@ -144,7 +144,10 @@
|
||||
(conj :rect :circle :path :bool))]
|
||||
(or (= uuid/zero id)
|
||||
(and (or (str/includes? (str/lower (:name shape)) (str/lower search))
|
||||
(str/includes? (dm/str (:id 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*
|
||||
(str/includes? (dm/str (:id shape)) (str/lower search))))
|
||||
(or (empty? filters)
|
||||
(and (contains? filters :component)
|
||||
(contains? shape :component-id))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user