Răsfoiți Sursa

allow set starting block if it's exists

Mega Yu 2 ani în urmă
părinte
comite
cba1150e1a
1 a modificat fișierele cu 1 adăugiri și 2 ștergeri
  1. 1 2
      src/main/frontend/state.cljs

+ 1 - 2
src/main/frontend/state.cljs

@@ -991,8 +991,7 @@ Similar to re-frame subscriptions"
 
 
 (defn set-selection-start-block!
 (defn set-selection-start-block!
   [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!
 (defn set-selection-blocks!
   ([blocks]
   ([blocks]