Ver código fonte

allow set starting block if it's exists

Mega Yu 2 anos atrás
pai
commit
cba1150e1a
1 arquivos alterados com 1 adições e 2 exclusões
  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!
   [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]