fix: allow for dependencies that could be undefined (#23682)

This commit is contained in:
Elizabeth Thompson 2023-04-13 12:01:57 -07:00 committed by GitHub
parent a04e635416
commit 26250173ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -651,7 +651,7 @@ const FiltersConfigForm = (
const hasAvailableFilters = availableFilters.length > 0;
const hasTimeDependency = availableFilters
.filter(filter => filter.type === 'filter_time')
.some(filter => dependencies.includes(filter.value));
.some(filter => dependencies?.includes(filter.value));
useEffect(() => {
if (datasetId) {