Skip to content

Commit

Permalink
fix removing pinned global filters (opensearch-project#5143)
Browse files Browse the repository at this point in the history
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
Co-authored-by: Miki <miki@amazon.com>
Co-authored-by: Josh Romero <rmerqg@amazon.com>
Signed-off-by: Leo Deng <leo7deng@gmail.com>
  • Loading branch information
3 people authored and Leo7Deng committed Oct 4, 2023
1 parent 7d89cca commit 49de29d
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,17 @@ export const useDashboardAppAndGlobalState = ({

subscriptions.add(stopSyncingFromTimeFilters);

const stopSyncingFromGlobalFilters = filterManager.getUpdates$().subscribe(() => {
refreshDashboardContainer({
dashboardServices: services,
dashboardContainer,
savedDashboard: dashboard!,
appStateData: stateContainer.getState(),
});
});

subscriptions.add(stopSyncingFromGlobalFilters);

unsubscribeFromDashboardContainer = () => {
stopSyncingDashboardContainerInputs();
stopSyncingDashboardContainerOutputs();
Expand Down

0 comments on commit 49de29d

Please sign in to comment.