mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 07:50:43 -05:00
🐛 Fix image layer filter
This commit is contained in:
parent
1d726249d0
commit
d8a6abfb88
1 changed files with 5 additions and 2 deletions
|
@ -10,6 +10,7 @@
|
|||
[app.common.data :as d]
|
||||
[app.common.data.macros :as dm]
|
||||
[app.common.files.helpers :as cfh]
|
||||
[app.common.types.shape :as cts]
|
||||
[app.common.uuid :as uuid]
|
||||
[app.main.data.workspace :as dw]
|
||||
[app.main.refs :as refs]
|
||||
|
@ -147,7 +148,10 @@
|
|||
(or (empty? filters)
|
||||
(and (contains? filters :component)
|
||||
(contains? shape :component-id))
|
||||
(let [direct-filters (into #{} (filter #{:frame :rect :circle :path :bool :image :text}) filters)]
|
||||
(and (contains? filters :image)
|
||||
(some? (cts/has-images? shape)))
|
||||
|
||||
(let [direct-filters (into #{} (filter #{:frame :rect :circle :path :bool :text}) filters)]
|
||||
(contains? direct-filters (:type shape)))
|
||||
(and (contains? filters :group)
|
||||
(and (cfh/group-shape? shape)
|
||||
|
@ -166,7 +170,6 @@
|
|||
:filters #{}
|
||||
:num-items 100})
|
||||
state (deref state*)
|
||||
|
||||
current-filters (:filters state)
|
||||
current-items (:num-items state)
|
||||
current-search (:search-text state)
|
||||
|
|
Loading…
Reference in a new issue