Skip to content

Commit

Permalink
Fix default value
Browse files Browse the repository at this point in the history
  • Loading branch information
geido committed Jan 26, 2022
1 parent 4ad5ad0 commit 83db568
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -399,12 +399,12 @@ export function FiltersConfigModal({
const didChangeFilterName =
changes.filters &&
Object.values(changes.filters).some(
(filter: any) => filter.name !== null,
(filter: any) => filter.name && filter.name !== null,
);
const didChangeSectionTitle =
changes.filters &&
Object.values(changes.filters).some(
(filter: any) => filter.title !== null,
(filter: any) => filter.title && filter.title !== null,
);
if (didChangeFilterName || didChangeSectionTitle) {
// we only need to set this if a name/title changed
Expand Down

0 comments on commit 83db568

Please sign in to comment.