f052_admin_area #27

Merged
jared merged 13 commits from f052_admin_area into development 2025-08-21 11:08:45 +02:00
Showing only changes of commit 885ad40543 - Show all commits

View File

@@ -8,7 +8,7 @@
let userName = $state('') let userName = $state('')
let userPassword = $state('') let userPassword = $state('')
let userList = $state([]) let userList: { userId: string; userName: string }[] = $state([])
let addUserError = $state(false); let addUserError = $state(false);
let addUserSuccess = $state(false); let addUserSuccess = $state(false);
const currentUser: string = data.user.id; const currentUser: string = data.user.id;
@@ -65,7 +65,7 @@
}, 5000); }, 5000);
} }
async function deleteUser(userId: number) { async function deleteUser(userId: string) {
trachi93 marked this conversation as resolved Outdated
Outdated
Review

try catch

try catch
const URL = `/api/users/${userId}`; const URL = `/api/users/${userId}`;
const response = await fetch(URL, { const response = await fetch(URL, {