diff --git a/src/client/pages/Vergunningen/useVergunningenTransformed.hook.ts b/src/client/pages/Vergunningen/useVergunningenTransformed.hook.ts index be1ccba98..4a7123003 100644 --- a/src/client/pages/Vergunningen/useVergunningenTransformed.hook.ts +++ b/src/client/pages/Vergunningen/useVergunningenTransformed.hook.ts @@ -5,7 +5,7 @@ import { defaultDateFormat } from '../../../universal/helpers/date'; import { getCustomTitleForVergunningWithLicensePlates } from '../../../universal/helpers/vergunningen'; import { AppState } from '../../../universal/types'; import { CaseType } from '../../../universal/types/vergunningen'; -import { addTitleLinkComponent } from '../../components'; +import { addTitleLinkComponent } from '../../components/Table/Table'; const titleTransformMap: Record = { [CaseType.TouringcarJaarontheffing]: @@ -24,17 +24,15 @@ export function useVergunningenTransformed( if (!VERGUNNINGEN.content?.length) { return []; } - const items: Vergunning[] = VERGUNNINGEN.content - .filter((x) => x) - .map((item) => { - const transformer = titleTransformMap[item.caseType]; - return { - ...item, - title: - typeof transformer === 'function' ? transformer(item) : item.title, - dateRequest: defaultDateFormat(item.dateRequest), - }; - }); + const items: Vergunning[] = VERGUNNINGEN.content.map((item) => { + const transformer = titleTransformMap[item.caseType]; + return { + ...item, + title: + typeof transformer === 'function' ? transformer(item) : item.title, + dateRequest: defaultDateFormat(item.dateRequest), + }; + }); return addTitleLinkComponent(items, 'identifier'); }, [VERGUNNINGEN.content]);