fix: use typed category field instead of Record cast
This commit is contained in:
@@ -101,7 +101,7 @@ export function DeadlineCalculator() {
|
|||||||
const seen = new Set<string>();
|
const seen = new Set<string>();
|
||||||
for (const pt of types) {
|
for (const pt of types) {
|
||||||
const j = pt.jurisdiction ?? "Sonstige";
|
const j = pt.jurisdiction ?? "Sonstige";
|
||||||
const c = (pt as Record<string, unknown>).category as string ?? "hauptverfahren";
|
const c = pt.category ?? "hauptverfahren";
|
||||||
const key = `${j}::${c}`;
|
const key = `${j}::${c}`;
|
||||||
if (!seen.has(key)) {
|
if (!seen.has(key)) {
|
||||||
seen.add(key);
|
seen.add(key);
|
||||||
|
|||||||
Reference in New Issue
Block a user