Skip to content

Commit

Permalink
fix: bring back logseq#10434
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Jan 22, 2024
1 parent fce15fb commit 0a1d084
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/main/frontend/components/block.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,6 @@
All page-names are sanitized except page-name-in-block"
[state config page-name-in-block page-name redirect-page-name page-entity contents-page? children html-export? label whiteboard-page?]
(let [*hover? (::hover? state)
;; FIXME: Bring back fix from https://github.com/logseq/logseq/pull/10434/commits/42f68ce32e7a035e6926bc2798d46843bbd70297
*mouse-down? (::mouse-down? state)
tag? (:tag? config)
breadcrumb? (:breadcrumb? config)
Expand Down
4 changes: 3 additions & 1 deletion src/main/frontend/db/model.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,9 @@ independent of format as format specific heading characters are stripped"
page-name'

(nil? page-entity)
page-name
(if-let [journal-name (date/journal-title->custom-format page-name)]
(util/page-name-sanity-lc journal-name)
page-name)

(page-empty-or-dummy? (state/get-current-repo) (:db/id page-entity))
(let [source-page (get-alias-source-page (state/get-current-repo) page-name')]
Expand Down

0 comments on commit 0a1d084

Please sign in to comment.