🐛 Fix multiselection with shift not working inside a library group

This commit is contained in:
Pablo Alba 2022-08-23 17:24:58 +02:00
parent 4e319fd9ef
commit 29223e8db8
2 changed files with 6 additions and 7 deletions

View file

@ -1940,13 +1940,11 @@
(fn [asset-type asset-groups asset-id]
(letfn [(flatten-groups
[groups]
(concat
(get groups "" [])
(reduce concat
(into []
(->> (filter #(seq (first %)) groups)
(map second)
(mapcat flatten-groups))))))]
(reduce concat [(get groups "" [])
(into []
(->> (filter #(seq (first %)) groups)
(map second)
(mapcat flatten-groups)))]))]
(let [selected-assets-type (get selected-assets asset-type)
count-assets (count selected-assets-type)]
(if (<= count-assets 0)