Merge pull request #266 from h3poteto/fix/home-timeline/lazyFetch
fix: Insert error of timeline when lazy loading
This commit is contained in:
commit
35b2f1ea52
|
@ -89,7 +89,7 @@ const Home = {
|
||||||
})
|
})
|
||||||
client.get('/timelines/home', { max_id: last.id, limit: 40 }, (err, data, res) => {
|
client.get('/timelines/home', { max_id: last.id, limit: 40 }, (err, data, res) => {
|
||||||
if (err) return reject(err)
|
if (err) return reject(err)
|
||||||
commit('insertTimeline')
|
commit('insertTimeline', data)
|
||||||
commit('changeLazyLoading', false)
|
commit('changeLazyLoading', false)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue