Fix default value (#18180)

This commit is contained in:
Geido 2022-01-27 17:40:32 +01:00 committed by GitHub
parent 8b83c7fe0a
commit a4e93afdbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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