mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-12 13:24:52 +00:00
refactor code
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user