mirror of
https://github.com/penpot/penpot.git
synced 2025-05-14 02:16:37 +02:00
🐛 Fix taking into account attrs filter in update-shapes
This commit is contained in:
parent
d89a4a1218
commit
ac1d0a5502
1 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@
|
||||||
|
|
||||||
(defn update-shapes
|
(defn update-shapes
|
||||||
([ids f] (update-shapes ids f nil))
|
([ids f] (update-shapes ids f nil))
|
||||||
([ids f {:keys [reg-objects? save-undo? keys ignore-tree]
|
([ids f {:keys [reg-objects? save-undo? attrs ignore-tree]
|
||||||
:or {reg-objects? false save-undo? true attrs nil}}]
|
:or {reg-objects? false save-undo? true attrs nil}}]
|
||||||
|
|
||||||
(us/assert ::coll-of-uuid ids)
|
(us/assert ::coll-of-uuid ids)
|
||||||
|
@ -91,7 +91,7 @@
|
||||||
ids (into [] (filter some?) ids)
|
ids (into [] (filter some?) ids)
|
||||||
|
|
||||||
changes (reduce
|
changes (reduce
|
||||||
#(update-shape-changes %1 page-id objects f keys %2 (get ignore-tree %2))
|
#(update-shape-changes %1 page-id objects f attrs %2 (get ignore-tree %2))
|
||||||
changes ids)]
|
changes ids)]
|
||||||
|
|
||||||
(when-not (empty? (:redo-changes changes))
|
(when-not (empty? (:redo-changes changes))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue