0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-01 20:09:04 -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)] (let [action (some attribute-actions-map attrs)]
(map (map
(fn [[v shape-ids]] (fn [[v shape-ids]]
(list action v shape-ids attrs)) (action v shape-ids attrs))
update-infos))) update-infos)))
shapes-update-info)) shapes-update-info))
@ -133,8 +133,6 @@
(rx/of (dwu/start-undo-transaction undo-id)) (rx/of (dwu/start-undo-transaction undo-id))
(rx/concat (rx/concat
(->> (update-tokens sd-tokens) (->> (update-tokens sd-tokens)
(map (fn [[f & attrs]]
(apply f attrs)))
(rx/concat))) (rx/concat)))
(rx/of (dwu/commit-undo-transaction undo-id)))))))))) (rx/of (dwu/commit-undo-transaction undo-id))))))))))