diff --git a/src/screens/OrganizationDashboard/OrganizationDashboard.tsx b/src/screens/OrganizationDashboard/OrganizationDashboard.tsx index 60e31396a5..5205cae25b 100644 --- a/src/screens/OrganizationDashboard/OrganizationDashboard.tsx +++ b/src/screens/OrganizationDashboard/OrganizationDashboard.tsx @@ -137,7 +137,7 @@ function organizationDashboard(): JSX.Element { role="button" className="mb-4" onClick={(): void => { - history.push(peopleLink); + history.push(peopleLink, { role: 1 }); }} > (); + const role = location?.state; + const currentUrl = window.location.href.split('=')[1]; - const [state, setState] = useState(0); + const [state, setState] = useState(role?.role || 0); const [page, setPage] = useState(0); const [rowsPerPage, setRowsPerPage] = useState(5);