mirror of
https://github.com/logseq/logseq.git
synced 2026-04-27 07:35:01 +00:00
refactor: remove :block/format for db graphs (#11667)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user