diff --git a/resources/js_vue3/views/Start.vue b/resources/js_vue3/views/Start.vue
index ee85892f..dbdde8b6 100644
--- a/resources/js_vue3/views/Start.vue
+++ b/resources/js_vue3/views/Start.vue
@@ -25,6 +25,7 @@
* to the Create or Import form with decoded URI to prefill the form
*/
function submitQrCode() {
+ form.clear()
form.qrcode = qrcodeInput.value.files[0]
form.upload('/api/v1/qrcode/decode', { returnError: true }).then(response => {
@@ -38,7 +39,9 @@
}
})
.catch(error => {
- notify.alert({ text: trans(error.response.data.message) })
+ if (error.response.status !== 422) {
+ notify.alert({ text: error.response.data.message })
+ }
})
}
@@ -77,8 +80,8 @@
-