fix(audit): P2 frontend any→concrete types (181→61), heroicons→lucide-react, missing type exports, toast API, Select options, TaskStatus types; P2-9 hooks.py type annotations
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { asError } from '@/utils/errorTypes';
|
||||
import React, { useState, useMemo } from 'react';
|
||||
// TODO: P2-T19 — Replace hardcoded PermissionLevelBadge/PrincipalTypeBadge with i18n
|
||||
import { useTranslation } from 'react-i18next';
|
||||
@@ -140,8 +141,8 @@ function FreigabenTab() {
|
||||
toast.success('Berechtigung gelöscht');
|
||||
setConfirmDelete(null);
|
||||
refetchPerms();
|
||||
} catch (err: any) {
|
||||
toast.error(err.message || 'Fehler beim Löschen');
|
||||
} catch (err: unknown) { const errObj = asError(err);
|
||||
toast.error(errObj.message || 'Fehler beim Löschen');
|
||||
} finally {
|
||||
setDeleting(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user