From 0470cda32ddc32656f7ef6fdaf451521f43ffea0 Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Fri, 6 May 2022 08:31:31 -0400 Subject: [PATCH] Update overview.php --- scripts/overview.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/overview.php b/scripts/overview.php index d45d588..cba8a9f 100644 --- a/scripts/overview.php +++ b/scripts/overview.php @@ -192,7 +192,7 @@ function loadDetectionIfNewExists(previous_detection_identifier=undefined) { const xhttp = new XMLHttpRequest(); xhttp.onload = function() { // if there's a new detection that needs to be updated to the page - if(this.responseText.length > 0) { + if(this.responseText.length > 0 && !this.responseText.includes("Database is busy.")) { document.getElementById("most_recent_detection").innerHTML = this.responseText; // only going to load left chart if there's a new detection