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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user