mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 10:56:20 +00:00
🐛 Fix undo with text shapes.
This commit is contained in:
parent
7bc91e7224
commit
aa83f1bbd3
@ -79,7 +79,9 @@
|
|||||||
(rx/of (update-editor-state shape nil))
|
(rx/of (update-editor-state shape nil))
|
||||||
(when (and (not= content (:content shape))
|
(when (and (not= content (:content shape))
|
||||||
(some? (:current-page-id state)))
|
(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)
|
(rx/of (dws/deselect-shape id)
|
||||||
(dwc/delete-shapes [id])))))))
|
(dwc/delete-shapes [id])))))))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user