mirror of
https://github.com/penpot/penpot.git
synced 2026-03-13 13:57:21 +00:00
🐛 Fix redo operation on commenting on workspace (#8455)
This commit is contained in:
@@ -317,8 +317,10 @@
|
||||
(let [objects (dsh/lookup-page-objects state)
|
||||
edition (get-in state [:workspace-local :edition])
|
||||
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)
|
||||
items (:items undo)
|
||||
index (or (:index undo) (dec (count items)))]
|
||||
|
||||
Reference in New Issue
Block a user