Make chart exclude itself from cross filtering (#14046)

This commit is contained in:
Kamil Gabryjelski 2021-04-12 13:08:07 +02:00 committed by GitHub
parent d6bd160250
commit bf22487e23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ export const getAllActiveFilters = ({
const scope = nativeFilters?.[filterId]?.scope ??
chartConfiguration?.[filterId]?.crossFilters?.scope ?? {
rootPath: [DASHBOARD_ROOT_ID],
excluded: [],
excluded: [filterId],
};
// Iterate over all roots to find all affected charts
scope.rootPath.forEach(layoutItemId => {