fix(ui): enable to open in right sidebar when wide screen

pull/3539/head
charlie 2021-12-21 16:56:14 +08:00 committed by Tienson Qin
parent 9908e91222
commit 00394926ee
1 changed files with 2 additions and 3 deletions

View File

@ -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])