From 29223e8db8a0d3655a41236fbc8bd299340686e4 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Tue, 23 Aug 2022 17:24:58 +0200 Subject: [PATCH] :bug: Fix multiselection with shift not working inside a library group --- CHANGES.md | 1 + .../src/app/main/ui/workspace/sidebar/assets.cljs | 12 +++++------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 225d24b97..35cd26fef 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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) diff --git a/frontend/src/app/main/ui/workspace/sidebar/assets.cljs b/frontend/src/app/main/ui/workspace/sidebar/assets.cljs index 8e408c060..68ace7369 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/assets.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/assets.cljs @@ -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)