Skip to content

Found Bug #202

Closed
Closed
@rhinel

Description

@rhinel

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions