1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 02:42:47 +00:00

optimized repo create code (#2697)

This commit is contained in:
杨顺强
2018-12-22 15:18:53 +08:00
committed by Daniel Pan
parent 7a2ce7bd16
commit eed617f44c
10 changed files with 123 additions and 95 deletions

View File

@@ -207,7 +207,7 @@ class GroupView extends React.Component {
addRepoItem = (repo) => {
let newRepoList = this.state.repoList.map(item => {return item;});
newRepoList.push(repo);
newRepoList.unshift(repo);
return newRepoList;
}