diff --git a/src/static/index.js b/src/static/index.js index a5cb61f..e127803 100644 --- a/src/static/index.js +++ b/src/static/index.js @@ -35,13 +35,13 @@ function exportReport() { throw new Error('Error while fetching report'); } }).then(text => { + loaded(); exportTextarea.value = text; exportTextarea.style.height = "auto"; exportTextarea.style.height = exportTextarea.scrollHeight + "px"; - loaded(); }).catch(error => { + loaded(); exportTextarea.value = 'Error while fetching report'; console.error(error); - loaded(); }); } \ No newline at end of file