mirror of
https://github.com/apache/superset.git
synced 2026-08-04 04:52:32 +00:00
fix: Cross filters initial scope (#25074)
(cherry picked from commit f584c8462b)
This commit is contained in:
committed by
Michael S. Molina
parent
f5d2075ace
commit
e4affbfc95
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user