refactor: rename :block/original-name to :block/title

This commit is contained in:
Tienson Qin
2024-07-10 21:29:39 +08:00
parent 2a48486ac1
commit a1f352773b
105 changed files with 559 additions and 563 deletions

View File

@@ -7,8 +7,8 @@
(defn get-current-page-name
"Fetch the current page's original name with same approach as get-current-page-id"
[]
(or (:block/original-name (db/get-page (state/get-current-page)))
(get-in (first (state/get-editor-args)) [:block :block/page :block/original-name])))
(or (:block/title (db/get-page (state/get-current-page)))
(get-in (first (state/get-editor-args)) [:block :block/page :block/title])))
(defn get-current-page-id
"Fetches the current page id. Looks up page based on latest route and if