mirror of
https://github.com/penpot/penpot.git
synced 2025-06-10 07:11:39 +02:00
🐛 Do not show deleted components on swap
This commit is contained in:
parent
39ed665b93
commit
9b32a00454
1 changed files with 3 additions and 2 deletions
|
@ -186,8 +186,9 @@
|
||||||
:path path})
|
:path path})
|
||||||
filters (deref filters*)
|
filters (deref filters*)
|
||||||
|
|
||||||
components (-> (get-in libraries [(:file-id filters) :data :components])
|
components (->> (get-in libraries [(:file-id filters) :data :components])
|
||||||
vals)
|
vals
|
||||||
|
(remove #(true? (:deleted %))))
|
||||||
|
|
||||||
components (if (str/empty? (:term filters))
|
components (if (str/empty? (:term filters))
|
||||||
components
|
components
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue