From 883877299237fb2616d022eb13e4d07ff501b922 Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Sun, 12 Aug 2018 22:41:37 +0900
Subject: [PATCH] fixes #484 Fix API response of lists
---
src/renderer/store/TimelineSpace/Contents/Lists/Edit.js | 4 ++--
src/renderer/store/TimelineSpace/Contents/Lists/Index.js | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/renderer/store/TimelineSpace/Contents/Lists/Edit.js b/src/renderer/store/TimelineSpace/Contents/Lists/Edit.js
index e29b6ef7..b4d27565 100644
--- a/src/renderer/store/TimelineSpace/Contents/Lists/Edit.js
+++ b/src/renderer/store/TimelineSpace/Contents/Lists/Edit.js
@@ -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) {
diff --git a/src/renderer/store/TimelineSpace/Contents/Lists/Index.js b/src/renderer/store/TimelineSpace/Contents/Lists/Index.js
index ca13ca22..01ef12b0 100644
--- a/src/renderer/store/TimelineSpace/Contents/Lists/Index.js
+++ b/src/renderer/store/TimelineSpace/Contents/Lists/Index.js
@@ -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) {