Commit e47e5c61 authored by Matthew Pietz's avatar Matthew Pietz Committed by Evan You

Always fetch passed in items (#107)

In order to get the updated score, we need to call fetch items every time.
parent 7772994c
...@@ -36,8 +36,6 @@ const store = new Vuex.Store({ ...@@ -36,8 +36,6 @@ const store = new Vuex.Store({
}, },
FETCH_ITEMS: ({ commit, state }, { ids }) => { FETCH_ITEMS: ({ commit, state }, { ids }) => {
// only fetch items that we don't already have.
ids = ids.filter(id => !state.items[id])
if (ids.length) { if (ids.length) {
return fetchItems(ids).then(items => commit('SET_ITEMS', { items })) return fetchItems(ids).then(items => commit('SET_ITEMS', { items }))
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment