mirror of
https://github.com/penpot/penpot.git
synced 2025-02-13 10:38:13 -05:00
🐛 Fix moving comment threads
Moving comment threads was failing with assert errors because the speced type is gpt/point whereas update-comment-thread-position was passing a raw map of coordinates. Signed-off-by: Ryan Breen <rbreen@zmags.com>
This commit is contained in:
parent
415a3cad7b
commit
c411ce248e
1 changed files with 2 additions and 2 deletions
|
@ -123,10 +123,10 @@
|
|||
page-id (:id page)
|
||||
objects (wsh/lookup-page-objects state page-id)
|
||||
new-frame-id (if (nil? frame-id)
|
||||
(ctst/frame-id-by-position objects {:x new-x :y new-y})
|
||||
(ctst/frame-id-by-position objects (gpt/point new-x new-y))
|
||||
(:frame-id thread))
|
||||
thread (assoc thread
|
||||
:position {:x new-x :y new-y}
|
||||
:position (gpt/point new-x new-y)
|
||||
:frame-id new-frame-id)
|
||||
|
||||
changes
|
||||
|
|
Loading…
Add table
Reference in a new issue