From 0bddaa53e234c8fc033953f2b6ea801a3e9de99d Mon Sep 17 00:00:00 2001 From: Violet Caulfield Date: Tue, 18 Feb 2025 22:49:48 -0600 Subject: [PATCH] fix horizontal card list when data is undefined --- components/Global/components/horizontal-list.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Global/components/horizontal-list.tsx b/components/Global/components/horizontal-list.tsx index 2703a67e..5b098642 100644 --- a/components/Global/components/horizontal-list.tsx +++ b/components/Global/components/horizontal-list.tsx @@ -30,7 +30,7 @@ export default function HorizontalCardList({ return ( ).slice(0, cutoff - 1)} + data={(props.data as Array | undefined)?.slice(0, cutoff - 1) ?? undefined} renderItem={props.renderItem} ListFooterComponent={() => { return props.data ? (