diff --git a/frontend/src/app/main/data/workspace/path/edition.cljs b/frontend/src/app/main/data/workspace/path/edition.cljs index a91532b0a..36af8c593 100644 --- a/frontend/src/app/main/data/workspace/path/edition.cljs +++ b/frontend/src/app/main/data/workspace/path/edition.cljs @@ -160,7 +160,7 @@ selected-points (dm/get-in state [:workspace-local :edit-path id :selected-points] #{}) - start-position (apply min #(gpt/distance start-position %) selected-points) + start-position (apply min-key #(gpt/distance start-position %) selected-points) content (st/get-path state :content) points (upg/content->points content)]