From f3353d9007a587564991e79cdb2269df4fe8b7a6 Mon Sep 17 00:00:00 2001 From: Dan Sosedoff Date: Wed, 28 Dec 2022 21:56:29 -0600 Subject: [PATCH] History page query loading fixup (#632) --- static/js/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/js/app.js b/static/js/app.js index d62c679..e078777 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -416,7 +416,11 @@ function buildTable(results, sortColumn, sortOrder, options) { $("#results_body").html(rows); // Show number of rows rendered on the page - $("#result-rows-count").html(results.stats.rows_count + " rows in " + results.stats.query_duration_ms + " ms"); + if (results.stats) { + $("#result-rows-count").html(results.stats.rows_count + " rows in " + results.stats.query_duration_ms + " ms"); + } else { + $("#result-rows-count").html(results.rows.length + " rows"); + } } function setCurrentTab(id) {