Skip to content

Commit

Permalink
Fix default value (apache#18180)
Browse files Browse the repository at this point in the history
  • Loading branch information
geido authored and bwang221 committed Feb 10, 2022
1 parent 992afaa commit 726b62f
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 726b62f

Please sign in to comment.