From 171cab12aaee61fcd59061282e7d2607ec38f6b5 Mon Sep 17 00:00:00 2001 From: oscarbakker Date: Thu, 19 Dec 2024 12:22:00 +0100 Subject: [PATCH] Handle empty array --- src/client/pages/ZaakStatus/ZaakStatus.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/pages/ZaakStatus/ZaakStatus.tsx b/src/client/pages/ZaakStatus/ZaakStatus.tsx index 3ab213cc5..0fc8c04b0 100644 --- a/src/client/pages/ZaakStatus/ZaakStatus.tsx +++ b/src/client/pages/ZaakStatus/ZaakStatus.tsx @@ -41,7 +41,7 @@ const pageRouteResolvers: PageRouteResolvers = { } if (!isLoading(appState.VERGUNNINGEN)) { return ( - appState.VERGUNNINGEN.content?.find( + (appState.VERGUNNINGEN.content || []).find( (vergunning) => vergunning.identifier === detailPageItemId )?.link.to ?? ITEM_NOT_FOUND );