Browse Source

Revert "ref(projects): Redirect post project transfer to project teams page" (#53089)

Reverts getsentry/sentry#52925 #53087 

Sadly it did not work, not sure why but it doesn't redirect to the new
org so you just land on a page that says the project was not found
(since it was transferred).
Colleen O'Rourke 1 year ago
parent
commit
c90b7d81d7
1 changed files with 2 additions and 8 deletions
  1. 2 8
      static/app/views/acceptProjectTransfer/index.tsx

+ 2 - 8
static/app/views/acceptProjectTransfer/index.tsx

@@ -42,14 +42,8 @@ class AcceptProjectTransfer extends DeprecatedAsyncView<Props, State> {
       },
       success: () => {
         const orgSlug = formData.organization;
-        const projectSlug = this.state?.transferDetails?.project.slug;
-        if (projectSlug === null) {
-          this.props.router.push(normalizeUrl(`/organizations/${orgSlug}/projects/`));
-        } else {
-          this.props.router.push(
-            normalizeUrl(`/settings/${orgSlug}/projects/${projectSlug}/teams/`)
-          );
-        }
+
+        this.props.router.push(normalizeUrl(`/organizations/${orgSlug}/projects/`));
         addSuccessMessage(t('Project successfully transferred'));
       },
       error: error => {