History page query loading fixup (#632)

This commit is contained in:
Dan Sosedoff 2022-12-28 21:56:29 -06:00 committed by GitHub
parent a864cbcee8
commit f3353d9007
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {