mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 08:26:40 +00:00
fix(fs): global file writing in code editor
This commit is contained in:
@@ -41,9 +41,7 @@
|
||||
(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)
|
||||
;; old-content (db/get-file rpath)
|
||||
_ (prn ::calc rpath)]
|
||||
rpath (path/trim-dir-prefix repo-dir path)]
|
||||
(if rpath
|
||||
;; in-db file
|
||||
(let [old-content (db/get-file rpath)]
|
||||
|
||||
Reference in New Issue
Block a user