Skip to content

Commit

Permalink
fix removing pinned global filters (#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>
  • Loading branch information
3 people authored Oct 3, 2023
1 parent 7d89cca commit ab925eb
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 ab925eb

Please sign in to comment.