diff --git a/frontend/app/src/pages/tickets/Tickets.tsx b/frontend/app/src/pages/tickets/Tickets.tsx index ed18ffeca..ed5553fe1 100644 --- a/frontend/app/src/pages/tickets/Tickets.tsx +++ b/frontend/app/src/pages/tickets/Tickets.tsx @@ -37,7 +37,7 @@ function BodyComponent() { await main.getPeopleBounties({ page: 1, resetPage: true, ...checkboxIdToSelectedMap }); setLoading(false); })(); - }, [main, checkboxIdToSelectedMap]); + }, [main]); useEffect(() => { setCheckboxIdToSelectedMap({ @@ -53,7 +53,7 @@ function BodyComponent() { } }, [main, ui.meInfo]); - const onChangeStatus = (optionId: any) => { + const onChangeStatus = async (optionId: any) => { const newCheckboxIdToSelectedMap = { ...checkboxIdToSelectedMap, ...{ @@ -61,6 +61,7 @@ function BodyComponent() { } }; setCheckboxIdToSelectedMap(newCheckboxIdToSelectedMap); + await main.getPeopleBounties({ page: 1, resetPage: true, ...newCheckboxIdToSelectedMap }); }; const onChangeLanguage = (optionId: any) => { diff --git a/frontend/app/src/people/widgetViews/WidgetSwitchViewer.tsx b/frontend/app/src/people/widgetViews/WidgetSwitchViewer.tsx index c57946675..b11aab803 100644 --- a/frontend/app/src/people/widgetViews/WidgetSwitchViewer.tsx +++ b/frontend/app/src/people/widgetViews/WidgetSwitchViewer.tsx @@ -6,7 +6,7 @@ import { queryLimit } from 'store/main'; import { Spacer } from '../main/Body'; import NoResults from '../utils/NoResults'; import { uiStore } from '../../store/ui'; -import { bountyHeaderFilter, bountyHeaderLanguageFilter } from '../utils/filterValidation'; +import { bountyHeaderLanguageFilter } from '../utils/filterValidation'; import { colors } from '../../config/colors'; import { useStores } from '../../store'; import { widgetConfigs } from '../utils/Constants'; @@ -170,7 +170,11 @@ function WidgetSwitchViewer(props: any) { setPage(currentPage); setCurrentItems(currentItems + queryLimit); - await main.getPeopleBounties({ limit: queryLimit, page: currentPage }); + await main.getPeopleBounties({ + limit: queryLimit, + page: currentPage, + ...props.checkboxIdToSelectedMap + }); }; const listItems =