commit: 068da3cf9f22f83da17051b8db5cde597f624fdf
parent: 53e104dc32080965a5a28ec37975b0c229a7d083
Author: shpuld <shp@cock.li>
Date: Sat, 2 Mar 2019 14:57:41 +0200
Fix JS error when no statuses returned
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js
@@ -106,7 +106,7 @@ const Timeline = {
tag: this.tag
}).then(statuses => {
store.commit('setLoading', { timeline: this.timelineName, value: false })
- if (statuses.length === 0) {
+ if (statuses && statuses.length === 0) {
this.bottomedOut = true
}
})