From 1477837cbf6273b6e4c098b92d4daf9053ae00c5 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 28 Jul 2022 08:30:00 +0200 Subject: [PATCH] :lipstick: Use concat-vec helper instead of set + into --- .../main/ui/workspace/viewport/outline.cljs | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/viewport/outline.cljs b/frontend/src/app/main/ui/workspace/viewport/outline.cljs index 731fb192c..d35722e96 100644 --- a/frontend/src/app/main/ui/workspace/viewport/outline.cljs +++ b/frontend/src/app/main/ui/workspace/viewport/outline.cljs @@ -8,6 +8,7 @@ (:require [app.common.exceptions :as ex] [app.common.geom.shapes :as gsh] + [app.common.data :as d] [app.util.object :as obj] [app.util.path.format :as upf] [clojure.set :as set] @@ -90,18 +91,17 @@ show-outline? (fn [shape] (and (not (:hidden shape)) (not (:blocked shape)))) - shapes (set - (into - (->> outlines-ids - (filter #(not= edition %)) - (map #(get objects %)) - (filterv show-outline?) - (filter some?)) - ;; outline highlighted shapes even if they are hidden or blocked - (->> highlighted - (filter #(not= edition %)) - (map #(get objects %)) - (filter some?))))] + shapes (d/concat-set + (->> outlines-ids + (filter #(not= edition %)) + (map #(get objects %)) + (filterv show-outline?) + (filter some?)) + ;; outline highlighted shapes even if they are hidden or blocked + (->> highlighted + (filter #(not= edition %)) + (map #(get objects %)) + (filter some?)))] [:g.outlines [:& shape-outlines-render {:shapes shapes :zoom zoom}]]))