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 ofekisr committed Feb 8, 2022
1 parent 94111bd commit 591e463
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 591e463

Please sign in to comment.