Fix timer if something goes wrong with report generation

pull/135/head
Simon Stürz 2018-11-19 15:59:57 +01:00 committed by Michael Zanetti
parent 384544ca15
commit 706a947113
1 changed files with 1 additions and 0 deletions

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;