fixes #484 Fix API response of lists
This commit is contained in:
parent
4aa9c65467
commit
8838772992
|
@ -19,8 +19,8 @@ export default {
|
|||
return client.get(`/lists/${listId}/accounts`, {
|
||||
limit: 0
|
||||
})
|
||||
.then((data) => {
|
||||
commit('changeMembers', data)
|
||||
.then((res) => {
|
||||
commit('changeMembers', res.data)
|
||||
})
|
||||
},
|
||||
removeAccount ({ rootState }, obj) {
|
||||
|
|
|
@ -17,9 +17,9 @@ export default {
|
|||
rootState.TimelineSpace.account.baseURL + '/api/v1'
|
||||
)
|
||||
return client.get('/lists')
|
||||
.then((data) => {
|
||||
commit('changeLists', data)
|
||||
return data
|
||||
.then((res) => {
|
||||
commit('changeLists', res.data)
|
||||
return res.data
|
||||
})
|
||||
},
|
||||
createList ({ rootState }, title) {
|
||||
|
|
Loading…
Reference in New Issue