From 31bbce13e6a8d0356e21d429f8fd2edb5aadedb2 Mon Sep 17 00:00:00 2001 From: kempersc Date: Mon, 15 Dec 2025 09:04:09 +0100 Subject: [PATCH] fix(types): Make genealogiewerkbalk nested fields optional Fixes TypeScript error where parseGenealogiewerkbalk returns optional fields but Institution interface expected required fields. --- frontend/src/components/map/InstitutionInfoPanel.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/map/InstitutionInfoPanel.tsx b/frontend/src/components/map/InstitutionInfoPanel.tsx index ba5531171a..5e8075bb6b 100644 --- a/frontend/src/components/map/InstitutionInfoPanel.tsx +++ b/frontend/src/components/map/InstitutionInfoPanel.tsx @@ -294,20 +294,20 @@ export interface Institution { successor_organization?: SuccessorOrganization; genealogiewerkbalk?: { municipality?: { - name: string; - code: string; + name?: string; + code?: string; }; municipal_archive?: { - name: string; + name?: string; website?: string; isil?: string; }; province?: { - name: string; - code: string; + name?: string; + code?: string; }; provincial_archive?: { - name: string; + name?: string; website?: string; }; match_confidence?: number;