Skip to content

Commit

Permalink
fix error display on file upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr0nox committed Nov 27, 2023
1 parent 6d89e2c commit 962ef87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion report-viewer/src/views/FileUploadView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</Button>
</div>
<LoadingCircle v-else class="space-y-5 pt-5" />
<div v-if="errors.length == 0" class="text-error">
<div v-if="errors.length > 0" class="text-error">
<p>{{ getErrorText() }}</p>
<p>For more details check the console.</p>
</div>
Expand Down Expand Up @@ -218,6 +218,7 @@ function continueWithLocal() {
}

function registerError(error: Error, source: fileMethod) {
loadingFiles.value = false
errors.value.push({ error, source })
console.error(error)
}
Expand Down

0 comments on commit 962ef87

Please sign in to comment.