Skip to content

Commit

Permalink
Handle undefined case for appliedFilterQuery in setAppliedFilterQuery…
Browse files Browse the repository at this point in the history
… function
  • Loading branch information
praveen5959 committed Nov 12, 2024
1 parent 7bb6536 commit 184bb62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/Stream/providers/FilterProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ const updateParentCombinator = (store: FilterStore, combinator: Combinator) => {

const setAppliedFilterQuery = (_store: FilterStore, query: string | undefined) => {
return {
appliedFilterQuery: query,
..._store,
appliedFilterQuery: query ?? '',
};
};

Expand Down

0 comments on commit 184bb62

Please sign in to comment.