We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfebd80 commit 05fff29Copy full SHA for 05fff29
1 file changed
lib/user/index.js
@@ -109,7 +109,8 @@ export function User (http, data) {
109
}
110
111
export function UserCollection (http, data) {
112
- const obj = cloneDeep(data.collaborators || data.shares || {})
+ const users = data.collaborators || data.shares || []
113
+ const obj = cloneDeep(users)
114
const userCollection = obj.map((userdata) => {
115
return new User(http, { user: userdata })
116
})
0 commit comments