fix: editing issue

This commit is contained in:
Peng Xiao
2022-08-05 14:16:19 +08:00
parent b30adea656
commit 712c49906c
8 changed files with 98 additions and 52 deletions

View File

@@ -44,8 +44,8 @@
(recent-handler/add-page-to-recent! (state/get-current-repo) page-name
click-from-recent?)
(let [m (cond->
{:to :page
:path-params {:name (str page-name)}}
{:to :page
:path-params {:name (str page-name)}}
anchor
(assoc :query-params {:anchor anchor})
push
@@ -56,7 +56,7 @@
([name]
(redirect-to-whiteboard! name nil))
([name {:keys [block-id]}]
(recent-handler/add-page-to-recent! (state/get-current-repo) name)
(recent-handler/add-page-to-recent! (state/get-current-repo) name false)
(redirect! {:to :whiteboard
:path-params {:name (str name)}
:query-params (merge {:block-id block-id})})))