mirror of
https://github.com/penpot/penpot.git
synced 2025-01-25 07:58:49 -05: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
|
||||
([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}}]
|
||||
|
||||
(us/assert ::coll-of-uuid ids)
|
||||
|
@ -91,7 +91,7 @@
|
|||
ids (into [] (filter some?) ids)
|
||||
|
||||
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)]
|
||||
|
||||
(when-not (empty? (:redo-changes changes))
|
||||
|
|
Loading…
Add table
Reference in a new issue