fix: lazy loading in block embeds

This commit is contained in:
Tienson Qin
2022-03-28 21:05:48 +08:00
parent 2ea282b902
commit b6e02e18b1
4 changed files with 28 additions and 20 deletions

View File

@@ -101,8 +101,10 @@
(get-timestamp block "Deadline"))
(defn load-more!
[block? db-id start-id]
[db-id start-id]
(let [repo (state/get-current-repo)
block (db/entity repo db-id)
block? (not (:block/name block))
k (if block?
:frontend.db.react/block-and-children
:frontend.db.react/page-blocks)