Browse Source

fix(releases): Put pack release health cta for non mobile projects (#26837)

Taylan Gocmen 3 years ago
parent
commit
bcf47073a2
1 changed files with 2 additions and 11 deletions
  1. 2 11
      static/app/views/releases/list/index.tsx

+ 2 - 11
static/app/views/releases/list/index.tsx

@@ -356,17 +356,8 @@ class ReleasesList extends AsyncView<Props, State> {
     const {hasSessions, releases} = this.state;
 
     const selectedProject = this.getSelectedProject();
-    const isMobileProject =
-      selectedProject &&
-      selectedProject.platform &&
-      ([...mobile, ...desktop] as string[]).includes(selectedProject.platform as string);
-
-    if (
-      !selectedProject ||
-      hasSessions !== false ||
-      !releases?.length ||
-      !isMobileProject
-    ) {
+
+    if (!selectedProject || hasSessions !== false || !releases?.length) {
       return null;
     }