You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ji...@apache.org on 2023/04/13 19:02:06 UTC
[superset] branch master updated: fix: allow for dependencies that could be undefined (#23682)
This is an automated email from the ASF dual-hosted git repository.
jinghuayao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 26250173ab fix: allow for dependencies that could be undefined (#23682)
26250173ab is described below
commit 26250173abfd08ecce9150713887fbfa3d902dda
Author: Elizabeth Thompson <es...@gmail.com>
AuthorDate: Thu Apr 13 12:01:57 2023 -0700
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 e580241495..d617e51e48 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) {