From c411ce248e2ac3bc1c5ffd48c7baaa3a8d598bda Mon Sep 17 00:00:00 2001 From: Ryan Breen Date: Fri, 9 Dec 2022 13:25:28 -0500 Subject: [PATCH] :bug: 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 --- frontend/src/app/main/data/workspace/comments.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/data/workspace/comments.cljs b/frontend/src/app/main/data/workspace/comments.cljs index 7fddf1c78..9c93ec83b 100644 --- a/frontend/src/app/main/data/workspace/comments.cljs +++ b/frontend/src/app/main/data/workspace/comments.cljs @@ -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