mirror of
https://github.com/apache/superset.git
synced 2026-06-03 14:49:23 +00:00
fix(native-filters): filter type check when using experimental flag (#15446)
This commit is contained in:
@@ -669,8 +669,8 @@ const FiltersConfigForm = (
|
||||
? FILTER_TYPE_NAME_MAPPING[name]
|
||||
: undefined;
|
||||
const isDisabled =
|
||||
FILTER_SUPPORTED_TYPES[filterType].length === 1 &&
|
||||
FILTER_SUPPORTED_TYPES[filterType].includes(
|
||||
FILTER_SUPPORTED_TYPES[filterType]?.length === 1 &&
|
||||
FILTER_SUPPORTED_TYPES[filterType]?.includes(
|
||||
GenericDataType.TEMPORAL,
|
||||
) &&
|
||||
!doLoadedDatasetsHaveTemporalColumns;
|
||||
|
||||
@@ -97,4 +97,5 @@ export const hasTemporalColumns = (
|
||||
|
||||
export const doesColumnMatchFilterType = (filterType: string, column: Column) =>
|
||||
!column.type_generic ||
|
||||
!(filterType in FILTER_SUPPORTED_TYPES) ||
|
||||
FILTER_SUPPORTED_TYPES[filterType].includes(column.type_generic);
|
||||
|
||||
Reference in New Issue
Block a user