Don't try to fill client/domain tables if there is no data (#3069)
Codespell / spell-check (push) Has been cancelled
editorconfig-checker / editorconfig-checker (push) Has been cancelled
Check for merge conflicts / main (push) Has been cancelled

This commit is contained in:
yubiuser
2024-07-08 20:59:30 +02:00
committed by GitHub
+4
View File
@@ -295,6 +295,8 @@ function updateTopClientsTable(blocked) {
// Add note if there are no results (e.g. privacy mode enabled)
if (jQuery.isEmptyObject(data.clients)) {
clienttable.append('<tr><td colspan="3"><center>- No data -</center></td></tr>');
overlay.hide();
return;
}
// Populate table with content
@@ -352,6 +354,8 @@ function updateTopDomainsTable(blocked) {
// Add note if there are no results (e.g. privacy mode enabled)
if (jQuery.isEmptyObject(data.domains)) {
domaintable.append('<tr><td colspan="3"><center>- No data -</center></td></tr>');
overlay.hide();
return;
}
// Populate table with content