mirror of
https://github.com/penpot/penpot.git
synced 2025-05-26 04:56:14 +02: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)
|
page-id (:id page)
|
||||||
objects (wsh/lookup-page-objects state page-id)
|
objects (wsh/lookup-page-objects state page-id)
|
||||||
new-frame-id (if (nil? frame-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))
|
(:frame-id thread))
|
||||||
thread (assoc thread
|
thread (assoc thread
|
||||||
:position {:x new-x :y new-y}
|
:position (gpt/point new-x new-y)
|
||||||
:frame-id new-frame-id)
|
:frame-id new-frame-id)
|
||||||
|
|
||||||
changes
|
changes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue