mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 10:56:32 +00:00
fix: queries
This commit is contained in:
@@ -1935,15 +1935,8 @@
|
||||
;; exclude the current one, otherwise it'll loop forever
|
||||
remove-blocks (if current-block-uuid [current-block-uuid] nil)
|
||||
query-result (and query-atom (rum/react query-atom))
|
||||
result (cond
|
||||
(and query-result dsl-query?)
|
||||
(apply concat query-result)
|
||||
|
||||
query-result
|
||||
(db/custom-query-result-transform query-result remove-blocks q)
|
||||
|
||||
:else
|
||||
nil)
|
||||
result (when query-result
|
||||
(db/custom-query-result-transform query-result remove-blocks q))
|
||||
view-f (and view (sci/eval-string (pr-str view)))
|
||||
only-blocks? (:block/uuid (first result))
|
||||
blocks-grouped-by-page? (and (seq result)
|
||||
|
||||
Reference in New Issue
Block a user