From 4e640d46ef36e8f19f84958a9eb20552a88c2949 Mon Sep 17 00:00:00 2001 From: jbiset Date: Thu, 16 May 2024 12:05:27 -0300 Subject: [PATCH] Fixed StatisticsDataSource to not include the pinned agent's fixed filter --- .../data-source/pattern/statistics/statistics-data-source.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/main/public/components/common/data-source/pattern/statistics/statistics-data-source.ts b/plugins/main/public/components/common/data-source/pattern/statistics/statistics-data-source.ts index e07a13f864..d75de017bb 100644 --- a/plugins/main/public/components/common/data-source/pattern/statistics/statistics-data-source.ts +++ b/plugins/main/public/components/common/data-source/pattern/statistics/statistics-data-source.ts @@ -18,6 +18,11 @@ export class StatisticsDataSource extends PatternDataSource { return [...this.getAPIFilter()]; } + getFixedFilters(): tFilter[] { + // getFixedFilters is overridden so that it does not return the pinned agent's fixed filter. + return []; + } + getAPIFilter(): tFilter[] { const currentApi = AppState.getCurrentAPI(); const parsedCurrentApi = currentApi ? JSON.parse(currentApi) : undefined;