From 9d0b8352f1e11a331196b0fed52ce77eafee2131 Mon Sep 17 00:00:00 2001 From: Elizabeth Thompson Date: Thu, 13 Apr 2023 12:01:57 -0700 Subject: [PATCH] fix: allow for dependencies that could be undefined (#23682) --- .../FiltersConfigModal/FiltersConfigForm/FiltersConfigForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigForm/FiltersConfigForm.tsx b/superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigForm/FiltersConfigForm.tsx index e5802414955c7..d617e51e48774 100644 --- a/superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigForm/FiltersConfigForm.tsx +++ b/superset-frontend/src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigForm/FiltersConfigForm.tsx @@ -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) {