Closed
Description
In file named ItemView.vue
at line 80~89
the function 'fetchComments' without an 'else'
fix like this:
function fetchComments (store, item) {
if (item && item.kids) {
return store.dispatch('FETCH_ITEMS', {
ids: item.kids
}).then(() => Promise.all(item.kids.map(id => {
return fetchComments(store, store.state.items[id])
})))
} else { // add this
return Promise.resolve()
}
}
Metadata
Metadata
Assignees
Labels
No labels