From cba1150e1af68c565eddaa1704ca40517f428201 Mon Sep 17 00:00:00 2001 From: Mega Yu Date: Thu, 20 Jul 2023 16:10:08 +0800 Subject: [PATCH] allow set starting block if it's exists --- src/main/frontend/state.cljs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/frontend/state.cljs b/src/main/frontend/state.cljs index 1e4520d68c..8df34d1b09 100644 --- a/src/main/frontend/state.cljs +++ b/src/main/frontend/state.cljs @@ -991,8 +991,7 @@ Similar to re-frame subscriptions" (defn set-selection-start-block! [start-block] - (when-not (get-selection-start-block) - (swap! state assoc :selection/start-block start-block))) + (swap! state assoc :selection/start-block start-block)) (defn set-selection-blocks! ([blocks]