Просмотр исходного кода

Merge pull request #1905 from porter-dev/nico/fix-repo-list-wrong-git-installation-id

Fix installation id passed wrong to repo
Nicolas Frati 4 лет назад
Родитель
Сommit
a0fe5d8ae3

+ 3 - 3
dashboard/src/components/repo-selector/RepoList.tsx

@@ -76,9 +76,9 @@ const RepoList: React.FC<Props> = ({
     try {
     try {
       const resolvedRepoList = await Promise.allSettled(repoListPromises);
       const resolvedRepoList = await Promise.allSettled(repoListPromises);
 
 
-      const repos: RepoType[][] = resolvedRepoList
-        .map((repo) => (repo.status === "fulfilled" ? repo.value.data : null))
-        .filter(Boolean);
+      const repos: RepoType[][] = resolvedRepoList.map((repo) =>
+        repo.status === "fulfilled" ? repo.value.data : []
+      );
 
 
       const names = new Set();
       const names = new Set();
       // note: would be better to use .flat() here but you need es2019 for
       // note: would be better to use .flat() here but you need es2019 for

+ 3 - 3
dashboard/src/main/home/cluster-dashboard/preview-environments/ConnectNewRepo.tsx

@@ -257,8 +257,8 @@ const HeaderSection = styled.div`
 
 
   > i {
   > i {
     cursor: pointer;
     cursor: pointer;
-    font-size 20px;
-    color: #969Fbbaa;
+    font-size: 20px;
+    color: #969fbbaa;
     padding: 2px;
     padding: 2px;
     border: 2px solid #969fbbaa;
     border: 2px solid #969fbbaa;
     border-radius: 100px;
     border-radius: 100px;
@@ -272,4 +272,4 @@ const HeaderSection = styled.div`
     margin-left: 17px;
     margin-left: 17px;
     margin-right: 7px;
     margin-right: 7px;
   }
   }
-`;
+`;