enhance(query-table): don't open page block in the right sidebar

pull/2489/head
Tienson Qin 2021-08-01 12:31:26 +08:00
parent 61131ba1eb
commit 63c3ba3ada
1 changed files with 21 additions and 22 deletions

View File

@ -338,8 +338,8 @@
[:a
{:class (if tag? "tag" "page-ref")
:data-ref page-name
:href href
:on-click (fn [e]
:on-mouse-down
(fn [e]
(util/stop e)
(let [create-first-block! (fn []
(when-not (editor-handler/add-default-title-property-if-needed! redirect-page-name)
@ -357,8 +357,7 @@
(create-first-block!)
(route-handler/redirect! {:to :page
:path-params {:name redirect-page-name}}))))
(when (and contents-page?
(state/get-left-sidebar-open?))
(when (and contents-page? (state/get-left-sidebar-open?))
(ui-handler/close-left-sidebar!)))}
(if (and (coll? children) (seq children))