浏览代码

Remove mock data

jnfrati 4 年之前
父节点
当前提交
e21a638d68
共有 1 个文件被更改,包括 1 次插入15 次删除
  1. 1 15
      dashboard/src/components/repo-selector/BranchList.tsx

+ 1 - 15
dashboard/src/components/repo-selector/BranchList.tsx

@@ -47,21 +47,7 @@ const BranchList: React.FC<Props> = ({
           }
           }
         )
         )
         .then((res) => {
         .then((res) => {
-          setBranches([
-            ...res.data,
-            ...[
-              "asd",
-              "asdq",
-              "aoipwjoie",
-              "ajodjwioa",
-              "jaodsjoiqj",
-              "qwpepok",
-              "asdasd",
-              "qjwoeojijio",
-              "aojiqjio",
-              "asojijiqo",
-            ],
-          ]);
+          setBranches(res.data);
           setLoading(false);
           setLoading(false);
           setError(false);
           setError(false);
         })
         })