mirror of
https://github.com/penpot/penpot.git
synced 2025-05-30 12:16:11 +02:00
♻️ Ensure a correct usage of concat/into operations.
This commit is contained in:
parent
b897f202dd
commit
6a7600fd52
42 changed files with 461 additions and 383 deletions
|
@ -201,7 +201,7 @@
|
|||
(recur (->> (get svgdata "elements")
|
||||
(filter #(= (get % "name") "g"))
|
||||
(map (partial set-path-color id color mapping))
|
||||
(update result "elements" d/concat))
|
||||
(update result "elements" into))
|
||||
(rest layers))
|
||||
|
||||
;; Now we have the result containing the svgdata of a
|
||||
|
@ -232,8 +232,8 @@
|
|||
|
||||
elements (cond->> elements
|
||||
(not (empty? gradient-defs))
|
||||
(d/concat [{"type" "element" "name" "defs" "attributes" {}
|
||||
"elements" gradient-defs}]))]
|
||||
(into [{"type" "element" "name" "defs" "attributes" {}
|
||||
"elements" gradient-defs}]))]
|
||||
|
||||
(-> result
|
||||
(assoc "name" "g")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue