Merge pull request #486 from h3poteto/iss-484

fixes #484 Fix API response of lists
This commit is contained in:
AkiraFukushima 2018-08-12 22:46:17 +09:00 committed by GitHub
commit 94af63fcaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {