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