fix: WIP assets not loading

This commit is contained in:
Tienson Qin
2023-06-27 19:07:57 +08:00
parent f6080b3657
commit 37d49b6ab8
7 changed files with 30 additions and 11 deletions

View File

@@ -1418,7 +1418,8 @@
[id ^js files format uploading? drop-or-paste?]
(let [repo (state/get-current-repo)
block (state/get-edit-block)]
(when (config/local-file-based-graph? repo)
(when (or (config/local-file-based-graph? repo)
(config/db-based-graph? repo))
(-> (save-assets! block repo (js->clj files))
;; FIXME: only the first asset is handled
(p/then