0
Fork 0
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:
Andrés Moya 2021-06-18 11:54:51 +02:00 committed by Alonso Torres
parent d89a4a1218
commit ac1d0a5502

View file

@ -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))