mirror of
https://github.com/penpot/penpot.git
synced 2025-01-26 00:19:07 -05:00
💄 Use concat-vec helper instead of set + into
This commit is contained in:
parent
5834e29b39
commit
1477837cbf
1 changed files with 12 additions and 12 deletions
|
@ -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,8 +91,7 @@
|
|||
show-outline? (fn [shape] (and (not (:hidden shape))
|
||||
(not (:blocked shape))))
|
||||
|
||||
shapes (set
|
||||
(into
|
||||
shapes (d/concat-set
|
||||
(->> outlines-ids
|
||||
(filter #(not= edition %))
|
||||
(map #(get objects %))
|
||||
|
@ -101,7 +101,7 @@
|
|||
(->> highlighted
|
||||
(filter #(not= edition %))
|
||||
(map #(get objects %))
|
||||
(filter some?))))]
|
||||
(filter some?)))]
|
||||
[:g.outlines
|
||||
[:& shape-outlines-render {:shapes shapes
|
||||
:zoom zoom}]]))
|
||||
|
|
Loading…
Add table
Reference in a new issue