aboutsummaryrefslogtreecommitdiff
path: root/src/services/timeline_fetcher
diff options
context:
space:
mode:
authorWyatt Benno <wyattbenno@gmail.com>2019-12-09 10:31:57 +0900
committerWyatt Benno <wyattbenno@gmail.com>2019-12-09 10:31:57 +0900
commit8ee80339555c53d45602f40fdbe6b487a6992515 (patch)
tree4f85e249bf9c57c97cc34ad899020a334ccbb718 /src/services/timeline_fetcher
parent1a043d4350c1cab2a56c5197ee8fb31e68593567 (diff)
Set error data
Diffstat (limited to 'src/services/timeline_fetcher')
-rw-r--r--src/services/timeline_fetcher/timeline_fetcher.service.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/services/timeline_fetcher/timeline_fetcher.service.js b/src/services/timeline_fetcher/timeline_fetcher.service.js
index 68644261..c6b28ad5 100644
--- a/src/services/timeline_fetcher/timeline_fetcher.service.js
+++ b/src/services/timeline_fetcher/timeline_fetcher.service.js
@@ -6,7 +6,7 @@ const update = ({ store, statuses, timeline, showImmediately, userId }) => {
const ccTimeline = camelCase(timeline)
store.dispatch('setError', { value: false })
- store.dispatch('setErrorData', { value: false })
+ store.dispatch('setErrorData', { value: null })
store.dispatch('addNewStatuses', {
timeline: ccTimeline,
@@ -47,7 +47,7 @@ const fetchAndUpdate = ({
return apiService.fetchTimeline(args)
.then((statuses) => {
if (statuses.error) {
- store.dispatch('setErrorData', { value: statuses.error })
+ store.dispatch('setErrorData', { value: statuses })
return
}
if (!older && statuses.length >= 20 && !timelineData.loading && numStatusesBeforeFetch > 0) {