diff --git a/src/main/frontend/state.cljs b/src/main/frontend/state.cljs index 894b1bfae..e567f0ece 100644 --- a/src/main/frontend/state.cljs +++ b/src/main/frontend/state.cljs @@ -804,9 +804,8 @@ (defn sidebar-add-block! [repo db-id block-type block-data] - (when-not (or (util/mobile?) - (mobile-util/is-native-platform?)) - (when db-id + (when (not (util/sm-breakpoint?)) + (when db-id (update-state! :sidebar/blocks (fn [blocks] (->> (remove #(= (second %) db-id) blocks) (cons [repo db-id block-type block-data])