1
0
mirror of https://git.pleroma.social/sjw/pleroma-fe.git synced 2024-12-23 00:53:45 +01:00

Fix JS error when no statuses returned

This commit is contained in:
shpuld 2019-03-02 14:57:41 +02:00
parent 53e104dc32
commit 068da3cf9f

View File

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