refactor: remove :block/format for db graphs (#11667)

This commit is contained in:
Tienson Qin
2025-01-05 12:10:47 +08:00
committed by GitHub
parent b24ad28bac
commit 8a0a05183e
76 changed files with 922 additions and 989 deletions

View File

@@ -380,7 +380,7 @@
(when-let [default-home (state/get-default-home)]
(let [page (:page default-home)
page (when (and (string? page)
(not (string/blank? page)))
(not (string/blank? page)))
(db/get-page page))]
(if page
default-home
@@ -598,7 +598,7 @@
:upload-files
{:drop (fn [_e files]
(when-let [id (state/get-edit-input-id)]
(let [format (:block/format (state/get-edit-block))]
(let [format (get (state/get-edit-block) :block/format :markdown)]
(editor-handler/upload-asset! id files format editor-handler/*asset-uploading? true))))})
(common-handler/listen-to-scroll! element)
(when (:margin-less-pages? (first (:rum/args state))) ;; makes sure full screen pages displaying without scrollbar