Skip to content

Commit

Permalink
remove unnecessary null check
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhooks committed May 11, 2024
1 parent 2fbead7 commit ac763f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/dataviews/src/filter-and-sort-data-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function filterSortAndPaginate< T extends Item >(
filteredData = filteredData.filter( ( item ) => {
return filter.value.every( ( value: any ) => {
return field
?.getValue( { item } )
.getValue( { item } )
?.includes( value );
} );
} );
Expand All @@ -112,7 +112,7 @@ export function filterSortAndPaginate< T extends Item >(
filteredData = filteredData.filter( ( item ) => {
return filter.value.every( ( value: any ) => {
return ! field
?.getValue( { item } )
.getValue( { item } )
?.includes( value );
} );
} );
Expand Down

0 comments on commit ac763f8

Please sign in to comment.