mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 02:46:45 +00:00
fix: pagination blocks
This commit is contained in:
@@ -61,7 +61,11 @@
|
||||
option (cond-> {:limit db-model/step-loading-blocks}
|
||||
block?
|
||||
(assoc :scoped-block-id db-id))
|
||||
more-data (->> (db-model/get-paginated-blocks-no-cache db start-id option)
|
||||
query-result (react/get-query-cached-result query-k)
|
||||
start-id' (or
|
||||
(when query-result (:db/id (last @query-result)))
|
||||
start-id)
|
||||
more-data (->> (db-model/get-paginated-blocks-no-cache db start-id' option)
|
||||
(map #(db/pull (:db/id %))))]
|
||||
(react/swap-new-result! query-k
|
||||
(fn [result]
|
||||
@@ -319,4 +323,4 @@
|
||||
own-order-list-index (some->> own-order-list-type (get-idx-of-order-list-block block))]
|
||||
(assoc config :own-order-list-type own-order-list-type
|
||||
:own-order-list-index own-order-list-index
|
||||
:own-order-number-list? (= own-order-list-type "number"))))
|
||||
:own-order-number-list? (= own-order-list-type "number"))))
|
||||
|
||||
Reference in New Issue
Block a user