diff --git a/src/DataTable/types.ts b/src/DataTable/types.ts index 66a7ecb9..4e1834d4 100644 --- a/src/DataTable/types.ts +++ b/src/DataTable/types.ts @@ -38,7 +38,7 @@ export type TableProps = { contextComponent?: React.ReactNode; contextMessage?: ContextMessage; customStyles?: TableStyles; - data: T[]; + data: T[] | undefined; defaultSortAsc?: boolean; defaultSortFieldId?: string | number | null | undefined; dense?: boolean;