0
Fork 0
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:
Ryan Breen 2022-12-09 13:25:28 -05:00
parent 415a3cad7b
commit c411ce248e

View file

@ -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