From ff26792e2f50fdcf4673a9d2d88a266e9befe6b2 Mon Sep 17 00:00:00 2001 From: Lino Schmidt Date: Mon, 12 Jun 2023 18:08:05 +0200 Subject: [PATCH] fixed text removed --- src/static/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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