Skip to content

Commit

Permalink
Handle empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
OscarBakker committed Dec 19, 2024
1 parent a7cdf15 commit 171cab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/pages/ZaakStatus/ZaakStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down

0 comments on commit 171cab1

Please sign in to comment.