fix further type problems

This commit is contained in:
2025-06-10 14:33:40 +02:00
parent e4d74e4331
commit 07247486ab
10 changed files with 15 additions and 63 deletions

View File

@@ -20,8 +20,7 @@
$: inProgress = form === null;
/** @type {?Record<string,any>}*/
let formErrors;
let formErrors: Record<string,any> | null;
async function validateForm() {
let data = new FormData();
@@ -39,7 +38,6 @@
success = false;
}
console.log('File', files);
if (!files?.length) {
formErrors = { file: 'Sie haben keine Datei ausgewählt.', ...formErrors };
success = false;
@@ -75,7 +73,6 @@
return;
}
const url = await getUrl();
console.log('URL', url);
open = true;
inProgress = true;
@@ -83,7 +80,6 @@
.then((response) => {
inProgress = false;
etag = '123';
console.log('SUCCESS', response);
})
.catch((err) => {
inProgress = false;
@@ -93,7 +89,6 @@
}
function uploadSuccessful() {
console.log('reset');
open = false;
vorgang = '';
name = '';