diff --git a/library/src/components/List/Filter/ContentFilterSelector/ContentFilterSelector.tsx b/library/src/components/List/Filter/ContentFilterSelector/ContentFilterSelector.tsx index 5a6cd13..742c05c 100644 --- a/library/src/components/List/Filter/ContentFilterSelector/ContentFilterSelector.tsx +++ b/library/src/components/List/Filter/ContentFilterSelector/ContentFilterSelector.tsx @@ -74,9 +74,9 @@ export default function ContentFilterSelector( const currentColumn = columns[firstFilter]; const propertyFilters = filters[firstFilter] || []; - let preferredFilter = currentColumn.preferredFilter || 'partial'; - - if (!currentColumn.preferredFilter) { + let preferredFilter = currentColumn?.preferredFilter || 'partial'; + + if (currentColumn && !currentColumn.preferredFilter) { switch (true) { case isPropertyScalar(currentColumn) && currentColumn.format === 'date-time':