diff --git a/frontend/pages/policies/PolicyPage/PolicyPage.tsx b/frontend/pages/policies/PolicyPage/PolicyPage.tsx index 235f5b150d..a52112c34a 100644 --- a/frontend/pages/policies/PolicyPage/PolicyPage.tsx +++ b/frontend/pages/policies/PolicyPage/PolicyPage.tsx @@ -213,6 +213,7 @@ const PolicyPage = ({ !isOnGlobalTeam && !isStoredPolicyLoading && storedPolicy?.team_id !== undefined && + storedPolicy?.team_id !== null && !(storedPolicy?.team_id?.toString() === location.query.team_id) ) { router.push(