mirror of
https://github.com/penpot/penpot.git
synced 2025-02-10 00:58:26 -05:00
🐛 Fix undo corner case in multiplayer
This commit is contained in:
parent
0faa0b21a4
commit
ab421ac3f9
1 changed files with 2 additions and 1 deletions
|
@ -265,7 +265,8 @@
|
|||
(move-objects [objects]
|
||||
(let [valid? (every? (partial is-valid-move? objects) shapes)
|
||||
parent (get objects parent-id)
|
||||
index (if (nil? after-shape) index (inc (d/index-of (:shapes parent) after-shape)))
|
||||
after-shape-index (d/index-of (:shapes parent) after-shape)
|
||||
index (if (nil? after-shape-index) index (inc after-shape-index))
|
||||
frame-id (if (= :frame (:type parent))
|
||||
(:id parent)
|
||||
(:frame-id parent))]
|
||||
|
|
Loading…
Add table
Reference in a new issue