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:
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]
|
||||
|
||||
Reference in new issue
Block a user