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 <[email protected]>
Co-authored-by: Miki <[email protected]>
Co-authored-by: Josh Romero <[email protected]>
  • 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.