Skip to content

Commit abf8b39

Browse files
update
1 parent b9f5d93 commit abf8b39

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/woqlClient.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1084,16 +1084,16 @@ WOQLClient.prototype.getBranches = function(dbId){
10841084
const orgList = Array.isArray(response) ? response : []
10851085
this.userOrganizations(orgList)
10861086
if (orgList.length>0){
1087-
//let orgObj = {}
1087+
let orgObj = {}
10881088
if(defaultOrg){
1089-
orgObj = response.find(element => element['name'] === defaultOrg)
1089+
orgObj = orgList.find(element => element['name'] === defaultOrg)
10901090

10911091
}else{
1092-
orgObj = response[0]
1092+
orgObj = orgList[0]
10931093
}
10941094
this.organization(orgObj['name'])
10951095
}
1096-
return response
1096+
return orgList
10971097
})
10981098

10991099
}

0 commit comments

Comments
 (0)