Skip to content

Commit e47e5c6

Browse files
sirlancelotyyx990803
authored andcommitted
Always fetch passed in items (vuejs#107)
In order to get the updated score, we need to call fetch items every time.
1 parent 7772994 commit e47e5c6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/store/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ const store = new Vuex.Store({
3636
},
3737

3838
FETCH_ITEMS: ({ commit, state }, { ids }) => {
39-
// only fetch items that we don't already have.
40-
ids = ids.filter(id => !state.items[id])
4139
if (ids.length) {
4240
return fetchItems(ids).then(items => commit('SET_ITEMS', { items }))
4341
} else {

0 commit comments

Comments
 (0)