fix: do not show links for the current page

This commit is contained in:
Peng Xiao
2022-12-06 15:10:25 +08:00
committed by Tienson Qin
parent e74d9d3526
commit 9dff0db9ac
5 changed files with 14 additions and 4 deletions

View File

@@ -78,6 +78,7 @@
(defn get-tldraw-handlers [current-whiteboard-name]
{:search search-handler
:queryBlockByUUID #(clj->js (model/query-block-by-uuid (parse-uuid %)))
:getBlockPageName #(:block/name (model/get-block-page (state/get-current-repo) (parse-uuid %)))
:isWhiteboardPage model/whiteboard-page?
:saveAsset save-asset-handler
:makeAssetUrl editor-handler/make-asset-url

View File

@@ -96,7 +96,7 @@
:selectedIds #js[]
:pages [(merge tldr-page
{:id id
:name "page"
:name (:block/name page-block)
:shapes shapes})]})))
(defn transact-tldr! [page-name tldr]