mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 10:56:20 +00:00
🐛 Fix redo operation on commenting on workspace (#8455)
This commit is contained in:
parent
db0a8b65ca
commit
57b9efbcd7
@ -317,8 +317,10 @@
|
|||||||
(let [objects (dsh/lookup-page-objects state)
|
(let [objects (dsh/lookup-page-objects state)
|
||||||
edition (get-in state [:workspace-local :edition])
|
edition (get-in state [:workspace-local :edition])
|
||||||
drawing (get state :workspace-drawing)]
|
drawing (get state :workspace-drawing)]
|
||||||
(when (and (or (nil? edition) (ctl/grid-layout? objects edition))
|
|
||||||
(or (empty? drawing) (= :curve (:tool drawing))))
|
;; Editors handle their own undo's
|
||||||
|
(when (or (and (nil? edition) (nil? (:object drawing)))
|
||||||
|
(ctl/grid-layout? objects edition))
|
||||||
(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