Skip to content

Commit

Permalink
fix: Cross filters initial scope (#25074)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina authored Aug 24, 2023
1 parent 8d33400 commit f584c84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions superset-frontend/src/dashboard/constants.ts
Original file line number Diff line number Diff line change
@@ -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';
/**
Expand Down Expand Up @@ -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: [],
};
2 changes: 1 addition & 1 deletion superset-frontend/src/dashboard/util/crossFilters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f584c84

Please sign in to comment.