From 501b573967403a1eb05fcb12d308731a6a6866ff Mon Sep 17 00:00:00 2001 From: m Date: Mon, 30 Mar 2026 19:37:52 +0200 Subject: [PATCH] fix: use typed category field instead of Record cast --- frontend/src/components/deadlines/DeadlineCalculator.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/deadlines/DeadlineCalculator.tsx b/frontend/src/components/deadlines/DeadlineCalculator.tsx index c855ce3..9427075 100644 --- a/frontend/src/components/deadlines/DeadlineCalculator.tsx +++ b/frontend/src/components/deadlines/DeadlineCalculator.tsx @@ -101,7 +101,7 @@ export function DeadlineCalculator() { const seen = new Set(); for (const pt of types) { const j = pt.jurisdiction ?? "Sonstige"; - const c = (pt as Record).category as string ?? "hauptverfahren"; + const c = pt.category ?? "hauptverfahren"; const key = `${j}::${c}`; if (!seen.has(key)) { seen.add(key);