Skip to content

Commit

Permalink
Fix: Fix null object error in FilterRow.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
whats2000 authored Nov 25, 2024
1 parent b2d96f6 commit 3479d10
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,15 @@ class FilterRow extends Component<FilterRowProps, FilterRowState> {
filterLogic: 'include',
activeOptions: {},
};
if (!selected.value) {
selected.value = '';
}
if (!selected.filterLogic) {
selected.filterLogic = 'include';
}
if (!selected.activeOptions) {
selected.activeOptions = {};
}
const textInput = advancedFilters[filterName]?.value || '';
const filterLogic = advancedFilters[filterName]?.filterLogic ?? 'include';

Expand Down

0 comments on commit 3479d10

Please sign in to comment.