mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 11:26:26 +00:00
refactor: rename :block/original-name to :block/title
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user