fix: re-find issue

This commit is contained in:
Tienson Qin
2021-05-20 21:54:03 +08:00
parent ad1db332d9
commit 717391e3db
2 changed files with 2 additions and 2 deletions

View File

@@ -39,7 +39,7 @@
(if (seq blocks)
blocks
(let [page-block (when page-name (db/pull [:block/name (string/lower-case page-name)]))
create-title-property? (util/include-windows-reserved-chars? page-name)
create-title-property? (and page-name (util/include-windows-reserved-chars? page-name))
content (if create-title-property?
(let [title (or (:block/original-name page-block)
(:block/name page-block))