mirror of
https://github.com/logseq/logseq.git
synced 2026-04-28 16:15:21 +00:00
fix(config): global config validation
This commit is contained in:
@@ -96,7 +96,6 @@
|
||||
[nil path])]
|
||||
(when (and format (contains? (gp-config/text-formats) format))
|
||||
(p/let [content (fs/read-file dir path)]
|
||||
(prn ::read-content dir path content)
|
||||
(reset! *content (or content ""))))
|
||||
(assoc state ::file-content *content)))
|
||||
:did-mount (fn [state]
|
||||
@@ -110,7 +109,7 @@
|
||||
rel-path (when (string/starts-with? path repo-dir)
|
||||
(path/trim-dir-prefix repo-dir path))
|
||||
original-name (db/get-file-page (or path rel-path))
|
||||
in-db? (boolean (db/get-file (or path rel-path)))
|
||||
in-db? (boolean (and rel-path (db/get-file (or path rel-path))))
|
||||
file-fpath (if in-db?
|
||||
(path/path-join repo-dir path)
|
||||
path)
|
||||
|
||||
Reference in New Issue
Block a user