fix: custom.css can't be saved

This commit is contained in:
Tienson Qin
2023-03-20 18:08:31 +08:00
committed by Andelf
parent 35e8bdf8ef
commit 70a4870ca4

View File

@@ -109,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 (and rel-path (db/get-file (or path rel-path))))
in-db? (boolean (db/get-file (or path rel-path)))
file-fpath (if in-db?
(path/path-join repo-dir path)
path)