1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 13:24:52 +00:00

refactor code

This commit is contained in:
ilearnit
2018-12-10 06:29:30 +00:00
committed by shanshuirenjia
parent f187be6559
commit 48bfa35a66
3 changed files with 6 additions and 7 deletions

View File

@@ -536,8 +536,8 @@ class MyLibraries extends Component {
renameRepo = (repoID, newName) => {
let array = this.state.items;
for(var i=0;i<array.length;i++){
if(array[i].repo_id==repoID){
for (var i=0; i < array.length; i++) {
if (array[i].repo_id === repoID) {
array[i].repo_name=newName;
break;
}