mirror of
https://github.com/logseq/logseq.git
synced 2026-04-30 17:06:23 +00:00
enhance(ui): simplify codes for modals
This commit is contained in:
@@ -220,7 +220,7 @@
|
||||
files (.-files clipboard-data)]
|
||||
(when-let [file (first files)]
|
||||
(when-let [block (state/get-edit-block)]
|
||||
(editor-handler/upload-asset id #js[file] (:block/format block)
|
||||
(editor-handler/upload-asset! id #js[file] (:block/format block)
|
||||
editor-handler/*asset-uploading? true)))
|
||||
(util/stop e))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user