0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

🐛 Fix undo with text shapes.

This commit is contained in:
Andrey Antukh 2021-03-16 14:41:51 +01:00
parent 7bc91e7224
commit aa83f1bbd3

View file

@ -79,7 +79,9 @@
(rx/of (update-editor-state shape nil))
(when (and (not= content (:content shape))
(some? (:current-page-id state)))
(rx/of (dwc/update-shapes [id] #(assoc % :content content))))))
(rx/of
(dwc/update-shapes [id] #(assoc % :content content))
(dwc/commit-undo-transaction)))))
(rx/of (dws/deselect-shape id)
(dwc/delete-shapes [id])))))))