0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-22 22:49:01 -05:00

🐛 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

@ -54,6 +54,7 @@
- Fix props preserving on copy&paste texts [Taiga #3629](https://tree.taiga.io/project/penpot/issue/3629) by @andrewzhurov
- Fix unexpected layers ungrouping on moving it [Taiga #3932](https://tree.taiga.io/project/penpot/issue/3932) by @andrewzhurov
- Fix unexpected exception and behavior on colorpicker with gradients [Taiga #3448](https://tree.taiga.io/project/penpot/issue/3448)
- Fix multiselection with shift not working inside a library group [Taiga #3532](https://tree.taiga.io/project/penpot/issue/3532)

View file

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