Skip to content

Commit

Permalink
fix: allow for dependencies that could be undefined (apache#23682)
Browse files Browse the repository at this point in the history
  • Loading branch information
eschutho authored and sebastianliebscher committed Apr 28, 2023
1 parent b33650f commit 9d0b835
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9d0b835

Please sign in to comment.