mirror of
https://github.com/logseq/logseq.git
synced 2026-04-28 16:15:21 +00:00
refactor(fs): handle asset deletion
This commit is contained in:
@@ -202,7 +202,7 @@
|
||||
(if (string/blank? asset-path)
|
||||
(reset! *exist? false)
|
||||
;; FIXME(andelf): possible bug here
|
||||
(p/let [exist? (fs/file-or-href-exists? "" asset-path)]
|
||||
(p/let [exist? (fs/asset-href-exists? asset-path)]
|
||||
(reset! *exist? (boolean exist?))))
|
||||
(assoc state ::asset-path asset-path ::asset-file? true))
|
||||
state)))
|
||||
|
||||
Reference in New Issue
Block a user