From 9d5458fc059f1fa5b787196e53e4e5cdbb2850cb Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Tue, 18 Apr 2023 00:45:40 +0800 Subject: [PATCH] fix: display built-in query title when collapsed? is true --- src/main/frontend/components/query.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/frontend/components/query.cljs b/src/main/frontend/components/query.cljs index a32c282657..998405308d 100644 --- a/src/main/frontend/components/query.cljs +++ b/src/main/frontend/components/query.cljs @@ -216,6 +216,7 @@ (or collapsed? (:block/collapsed? current-block))) + built-in-collapsed? (and collapsed? built-in?) table? (or table-view? (get-in current-block [:block/properties :query-table]) (and (string? query) (string/ends-with? (string/trim query) "table"))) @@ -228,7 +229,7 @@ (symbol? (gp-util/safe-read-string query))) not-grouped-by-page? (or table? (and (string? query) (string/includes? query "(by-page false)"))) - result (when-not collapsed?' + result (when (or built-in-collapsed? (not collapsed?')) (get-query-result state config *query-error *query-triggered? current-block-uuid q not-grouped-by-page?)) query-time (:query-time (meta result)) page-list? (and (seq result)