mirror of https://github.com/apache/superset.git
fix: Cross filters initial scope (#25074)
This commit is contained in:
parent
8d3340045c
commit
f584c8462b
|
@ -1,4 +1,4 @@
|
|||
import { DatasourceType } from '@superset-ui/core';
|
||||
import { DatasourceType, NativeFilterScope } from '@superset-ui/core';
|
||||
import { Datasource } from 'src/dashboard/types';
|
||||
import { DASHBOARD_ROOT_ID } from './util/constants';
|
||||
/**
|
||||
|
@ -44,7 +44,7 @@ export const FILTER_BAR_TABS_HEIGHT = 46;
|
|||
export const BUILDER_SIDEPANEL_WIDTH = 374;
|
||||
export const OVERWRITE_INSPECT_FIELDS = ['css', 'json_metadata.filter_scopes'];
|
||||
|
||||
export const DEFAULT_CROSS_FILTER_SCOPING = {
|
||||
export const DEFAULT_CROSS_FILTER_SCOPING: NativeFilterScope = {
|
||||
rootPath: [DASHBOARD_ROOT_ID],
|
||||
excluded: [],
|
||||
};
|
||||
|
|
|
@ -52,7 +52,7 @@ export const getCrossFiltersConfiguration = (
|
|||
return undefined;
|
||||
}
|
||||
|
||||
const globalChartConfiguration = metadata.global_chart_configuration
|
||||
const globalChartConfiguration = metadata.global_chart_configuration?.scope
|
||||
? {
|
||||
scope: metadata.global_chart_configuration.scope,
|
||||
chartsInScope: getChartIdsInFilterScope(
|
||||
|
|
Loading…
Reference in New Issue