diff --git a/src/store/index.js b/src/store/index.js index ebdcde2..d266d3b 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -9,6 +9,8 @@ import rolesJSON from "../roles.json"; Vue.use(Vuex); +const rolesJSONbyId = new Map(rolesJSON.map(role => [role.id, role])); + const getRolesByEdition = (edition = "tb") => { const selectedEdition = editionJSON.find(({ id }) => id === edition) || editionJSON[0];