1
0
mirror of https://github.com/kihashi/stardew_community_checklist.git synced 2025-10-19 08:03:17 +00:00

Add a function to get an item by id.

This commit is contained in:
John Cleaver 2018-05-05 17:41:48 -04:00
parent dc5f0bdd6e
commit b7f39e240e

View File

@ -27,6 +27,9 @@ export default new Vuex.Store({
},
GetBundleById: (state) => (bundleId) => {
return getById(state.bundles, bundleId)
},
GetItemById: (state) => (itemId) => {
return getById(state.items, itemId)
}
},
mutations: {