fix: compare contents when new files detected

This commit is contained in:
Tienson Qin
2021-11-22 22:25:59 +08:00
parent a7981dd1c8
commit a9f21cd76c

View File

@@ -36,6 +36,7 @@
(not (:encryption/graph-parsing? @state/state)))
(cond
(and (= "add" type)
(not= (string/trim content) (string/trim db-content))
(not (string/includes? path "logseq/pages-metadata.edn")))
(p/let [_ (file-handler/alter-file repo path content {:re-render-root? true
:from-disk? true})]