mirror of
https://github.com/penpot/penpot.git
synced 2025-05-15 18:07:10 +02:00
🐛 Fix undo for drawing curves
This commit is contained in:
parent
0b149dd302
commit
6e9a77edcd
1 changed files with 1 additions and 1 deletions
|
@ -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) (and (not-empty drawing) (nil? (:object drawing))))
|
(when (and (nil? edition) (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…
Add table
Add a link
Reference in a new issue