mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 00:24:51 +00:00
fix(fs): file editing in nfs
This commit is contained in:
@@ -41,7 +41,8 @@
|
||||
(let [path (:file-path config)
|
||||
repo (state/get-current-repo)
|
||||
repo-dir (config/get-repo-dir repo)
|
||||
rpath (path/trim-dir-prefix repo-dir path)]
|
||||
rpath (when (string/starts-with? path repo-dir)
|
||||
(path/trim-dir-prefix repo-dir path))]
|
||||
(if rpath
|
||||
;; in-db file
|
||||
(let [db-content (db/get-file rpath)
|
||||
|
||||
Reference in New Issue
Block a user