mirror of
https://github.com/penpot/penpot.git
synced 2026-09-09 21:49:10 +00:00
🐛 Fix undo when drawing curve
This commit is contained in:
parent
29010453e6
commit
919ca68a77
@ -124,7 +124,7 @@
|
|||||||
(let [edition (get-in state [:workspace-local :edition])
|
(let [edition (get-in state [:workspace-local :edition])
|
||||||
drawing (get state :workspace-drawing)]
|
drawing (get state :workspace-drawing)]
|
||||||
;; Editors handle their own undo's
|
;; Editors handle their own undo's
|
||||||
(when-not (or (some? edition) (not-empty drawing))
|
(when-not (or (some? edition) (and (not-empty drawing) (nil? (:object drawing))))
|
||||||
(let [undo (:workspace-undo state)
|
(let [undo (:workspace-undo state)
|
||||||
items (:items undo)
|
items (:items undo)
|
||||||
index (or (:index undo) (dec (count items)))]
|
index (or (:index undo) (dec (count items)))]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user