Skip to content

Commit

Permalink
Fix default value (#18180)
Browse files Browse the repository at this point in the history
  • Loading branch information
geido committed Jan 27, 2022
1 parent 8b83c7f commit a4e93af
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 a4e93af

Please sign in to comment.