change redirect location for teams and organization pages (#15106)

Co-authored-by: Shaik-Sirajuddin <[email protected]>
Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
authored and GitHub committed 2024-05-21 18:40:26 +00:00
1 parent 1b176f0d49
commit a4a1c016dc
9 files changed
+9 -9

No files matched your search

@@ -220,7 +220,7 @@ const OrgAppearanceViewWrapper = () => {
useEffect(
function refactorMeWithoutEffect() {
if (error) {
router.push("/settings");
router.replace("/enterprise");
}
},
[error]
@@ -67,7 +67,7 @@ const OrgGeneralView = () => {
useEffect(
function refactorMeWithoutEffect() {
if (error) {
router.push("/settings");
router.replace("/enterprise");
}
},
[error]
@@ -114,7 +114,7 @@ const MembersView = () => {
useEffect(
function refactorMeWithoutEffect() {
if (otherMembersError || otherTeamError) {
router.push("/settings");
router.replace("/enterprise");
}
},
[router, otherMembersError, otherTeamError]
@@ -94,7 +94,7 @@ const OtherTeamProfileView = () => {
useEffect(
function refactorMeWithoutEffect() {
if (teamError) {
router.push("/settings");
router.replace("/enterprise");
}
},
[teamError]
@@ -90,7 +90,7 @@ const OrgProfileView = () => {
useEffect(
function refactorMeWithoutEffect() {
if (error) {
router.push("/settings");
router.replace("/enterprise");
}
},
[error]
@@ -30,7 +30,7 @@ const SAMLSSO = () => {
useEffect(
function refactorMeWithoutEffect() {
if (error) {
router.push("/settings");
router.replace("/teams");
}
},
[error]
@@ -193,7 +193,7 @@ const ProfileViewWrapper = () => {
useEffect(
function refactorMeWithoutEffect() {
if (error) {
router.push("/settings");
router.replace("/teams");
}
},
[error]
@@ -117,7 +117,7 @@ const MembersView = () => {
useEffect(
function refactorMeWithoutEffect() {
if (teamError) {
router.push("/settings");
router.replace("/teams");
}
},
[teamError]
@@ -107,7 +107,7 @@ const ProfileView = () => {
useEffect(
function refactorMeWithoutEffect() {
if (error) {
router.push("/settings");
router.replace("/teams");
}
},
[error]