fix: re-create the page when the file appears again

related to #5549
This commit is contained in:
Tienson Qin
2022-06-07 12:17:36 +08:00
parent 09a9cda59c
commit 307f7bd755
3 changed files with 13 additions and 11 deletions

View File

@@ -92,7 +92,7 @@
(db/file-exists? repo path))
(when-let [page-name (db/get-file-page path)]
(println "Delete page: " page-name ", file path: " path ".")
(page-handler/delete! page-name #() :delete-file? false))
(page-handler/delete! page-name #() :unlink-file? true))
(and (contains? #{"add" "change" "unlink"} type)
(string/ends-with? path "logseq/custom.css"))