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:
parent
fc6d64fb5d
commit
0c757f05e3
1 changed files with 1 additions and 3 deletions
|
@ -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))))))))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue