diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js index c5505189d..1bad4b89d 100644 --- a/scripts/pi-hole/js/index.js +++ b/scripts/pi-hole/js/index.js @@ -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('
- No data -
'); + 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('
- No data -
'); + overlay.hide(); + return; } // Populate table with content