mirror of
https://github.com/penpot/penpot.git
synced 2025-06-05 15:01:42 +02:00
🐛 Fix enable undo just after using pencil
This commit is contained in:
parent
92ee6320f5
commit
7036dddad1
2 changed files with 2 additions and 1 deletions
|
@ -119,7 +119,7 @@
|
|||
(watch [it state _]
|
||||
(let [edition (get-in state [:workspace-local :edition])
|
||||
drawing (get state :workspace-drawing)]
|
||||
(when-not (or (some? edition) (not-empty drawing))
|
||||
(when-not (or (some? edition) (some? (:object drawing)))
|
||||
(let [undo (:workspace-undo state)
|
||||
items (:items undo)
|
||||
index (or (:index undo) (dec (count items)))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue