Skip to content

Commit

Permalink
Merge pull request #138 from irontec/CDL-33-search-chrash-when-no-fil…
Browse files Browse the repository at this point in the history
…ter-available

Fixed unhandled exception on filtering without filters
  • Loading branch information
danigargar authored Sep 16, 2024
2 parents 921d72a + 98c3290 commit e8abf20
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down

0 comments on commit e8abf20

Please sign in to comment.