Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ const TOP_OF_PAGE_RANGE = 220;

const DashboardContainer: FC<DashboardContainerProps> = ({ topLevelTabs }) => {
const nativeFilterScopes = useNativeFilterScopes();
const nativeFilters = useSelector<RootState, Filters>(
state => state.nativeFilters?.filters,
);
const dispatch = useDispatch();

const dashboardLayout = useSelector<RootState, DashboardLayout>(
Expand Down Expand Up @@ -192,7 +195,13 @@ const DashboardContainer: FC<DashboardContainerProps> = ({ topLevelTabs }) => {
};
});
dispatch(setInScopeStatusOfFilters(scopes));
}, [chartIds, JSON.stringify(nativeFilterScopes), dashboardLayout, dispatch]);
}, [
chartIds,
JSON.stringify(nativeFilterScopes),
dashboardLayout,
dispatch,
JSON.stringify(nativeFilters),
Comment thread
richardfogaca marked this conversation as resolved.
]);

const childIds: string[] = useMemo(
() => (topLevelTabs ? topLevelTabs.children : [DASHBOARD_GRID_ID]),
Expand Down
Loading