fixes #484 Fix API response of lists

This commit is contained in:
AkiraFukushima 2018-08-12 22:41:37 +09:00
parent 4aa9c65467
commit 8838772992
2 changed files with 5 additions and 5 deletions

View File

@ -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) {

View File

@ -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) {