Merge pull request #486 from h3poteto/iss-484
fixes #484 Fix API response of lists
This commit is contained in:
commit
94af63fcaa
|
@ -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