mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
[fix] dashboard filter scope bug (#9550)
This commit is contained in:
@@ -212,5 +212,19 @@ describe('getFilterScopeFromNodesTree', () => {
|
||||
immune: [],
|
||||
});
|
||||
});
|
||||
|
||||
it('mixed row level tab and chart scope', () => {
|
||||
const checkedChartIds = [103, 105, 102];
|
||||
expect(
|
||||
getFilterScopeFromNodesTree({
|
||||
filterKey: '107_region',
|
||||
nodes,
|
||||
checkedChartIds,
|
||||
}),
|
||||
).toEqual({
|
||||
scope: ['TAB-E4mJaZ-uQM', 'TAB-rLYu-Cryu'],
|
||||
immune: [101],
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user