Build-Fehler im Benutzerformular behoben

Zwei Typfehler aus dem vorigen Commit: Der Formular-Reset beim Anlegen eines
neuen Benutzers kannte isServiceAccount nicht, und der Typ von userApi.create
ebenfalls nicht.

Ursache meines Uebersehens: Ich hatte mit 'npx vite build' geprueft, das
Projekt nutzt aber 'npm run build' = 'tsc && vite build'. Die Typpruefung lief
bei mir damit gar nicht mit. Ab jetzt npm run build.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-24 10:45:26 +02:00
co-authored by Claude Opus 5
parent b696980793
commit 389fd30094
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -284,6 +284,7 @@ function UserModal({
isActive: true, isActive: true,
hasDeveloperAccess: false, hasDeveloperAccess: false,
hasGdprAccess: false, hasGdprAccess: false,
isServiceAccount: false,
whatsappNumber: '', whatsappNumber: '',
telegramUsername: '', telegramUsername: '',
signalNumber: '', signalNumber: '',
+1 -1
View File
@@ -1548,7 +1548,7 @@ export const userApi = {
const res = await api.get<ApiResponse<User>>(`/users/${id}`); const res = await api.get<ApiResponse<User>>(`/users/${id}`);
return res.data; return res.data;
}, },
create: async (data: { email: string; password: string; firstName: string; lastName: string; roleIds: number[]; customerId?: number; hasDeveloperAccess?: boolean; hasGdprAccess?: boolean; whatsappNumber?: string; telegramUsername?: string; signalNumber?: string }) => { create: async (data: { email: string; password: string; firstName: string; lastName: string; roleIds: number[]; customerId?: number; hasDeveloperAccess?: boolean; hasGdprAccess?: boolean; isServiceAccount?: boolean; whatsappNumber?: string; telegramUsername?: string; signalNumber?: string }) => {
const res = await api.post<ApiResponse<User>>('/users', data); const res = await api.post<ApiResponse<User>>('/users', data);
return res.data; return res.data;
}, },