Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Mar 14, 2024
1 parent 13857fe commit a3b8c6f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ export const initializeDashboard = async ({
);

// --------------------------------------------------------------------------------------
// Set parentApi.filters to include dashboardContainer filters and control group filters
// Set parentApi.filters$ to include dashboardContainer filters and control group filters
// --------------------------------------------------------------------------------------
untilDashboardReady().then((dashboardContainer) => {
if (!dashboardContainer.controlGroup) {
Expand All @@ -486,8 +486,8 @@ export const initializeDashboard = async ({
);
}

const filters = new BehaviorSubject<Filter[] | undefined>(getCombinedFilters());
dashboardContainer.filters$ = filters;
const filters$ = new BehaviorSubject<Filter[] | undefined>(getCombinedFilters());
dashboardContainer.filters$ = filters$;

const inputFilters$ = dashboardContainer.getInput$().pipe(
startWith(dashboardContainer.getInput()),
Expand All @@ -505,7 +505,7 @@ export const initializeDashboard = async ({

dashboardContainer.integrationSubscriptions.add(
combineLatest([inputFilters$, controlGroupFilters$]).subscribe(() => {
filters.next(getCombinedFilters());
filters$.next(getCombinedFilters());
})
);
});
Expand Down

0 comments on commit a3b8c6f

Please sign in to comment.