0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-21 06:02:32 -05:00

Apply actions directly

This commit is contained in:
Florian Schroedl 2024-08-01 15:37:39 +02:00
parent fc6d64fb5d
commit 0c757f05e3

View file

@ -107,7 +107,7 @@
(let [action (some attribute-actions-map attrs)]
(map
(fn [[v shape-ids]]
(list action v shape-ids attrs))
(action v shape-ids attrs))
update-infos)))
shapes-update-info))
@ -133,8 +133,6 @@
(rx/of (dwu/start-undo-transaction undo-id))
(rx/concat
(->> (update-tokens sd-tokens)
(map (fn [[f & attrs]]
(apply f attrs)))
(rx/concat)))
(rx/of (dwu/commit-undo-transaction undo-id))))))))))