fix: can't deref query result

This commit is contained in:
Tienson Qin
2025-11-04 15:29:48 +08:00
parent 6844292dec
commit 5e924880b1
2 changed files with 4 additions and 2 deletions

View File

@@ -57,7 +57,9 @@
:built-in-query? (:built-in-query? config)})]
[k (rum/react result)]))
(catch :default e
(reset! *query-error e)))))
(js/console.error e)
(reset! *query-error e)
[nil nil]))))
(defn get-group-by-page [{:keys [result-transform query] :as query-m}
{:keys [table? db-graph?]}]

View File

@@ -802,7 +802,7 @@ Some bindings in this fn:
blocks? (if db-graph? true blocks?)]
(when-let [query' (some-> query* (query-wrapper {:blocks? blocks?
:block-attrs (when db-graph? db-block-attrs)}))]
(let [random-samples (if @sample
(let [random-samples (if (and sample @sample)
(fn [col]
(take @sample (shuffle col)))
identity)