From c61b794ab627507db9b937d6167589606205596e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marina=20L=C3=B3pez?= Date: Fri, 13 Dec 2024 12:02:20 +0100 Subject: [PATCH] :bug:Fix link when deselecting shapes --- frontend/src/app/main/data/workspace/selection.cljs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/data/workspace/selection.cljs b/frontend/src/app/main/data/workspace/selection.cljs index a4dd554b4..2fdd28d01 100644 --- a/frontend/src/app/main/data/workspace/selection.cljs +++ b/frontend/src/app/main/data/workspace/selection.cljs @@ -304,8 +304,11 @@ ([check-modal] (ptk/reify ::deselect-all ptk/WatchEvent - (watch [_ _ _] - (rx/of ::dwsp/interrupt)) + (watch [_ state _] + (let [params-without-board (-> (rt/get-params state) + (dissoc :board-id))] + (rx/of ::dwsp/interrupt) + (rx/of (rt/nav :workspace params-without-board {::rt/replace true})))) ptk/UpdateEvent (update [_ state]