Fix timer if something goes wrong with report generation

This commit is contained in:
Simon Stürz 2018-11-19 15:59:57 +01:00 committed by Michael Zanetti
parent 384544ca15
commit 706a947113

View File

@ -151,6 +151,7 @@ function generateReport() {
if (reportGenerateRequest.status != 200) {
console.log("Report generation finished with error.");
clearTimeout(generateReportTimer);
textArea.value = "Something went wrong :(";
button.disabled = false;
return;