mirror of https://github.com/bra1n/townsquare.git
Define Map of all known characters.
This commit is contained in:
parent
acd99bc2fb
commit
396990cd1d
|
@ -9,6 +9,8 @@ import rolesJSON from "../roles.json";
|
||||||
|
|
||||||
Vue.use(Vuex);
|
Vue.use(Vuex);
|
||||||
|
|
||||||
|
const rolesJSONbyId = new Map(rolesJSON.map(role => [role.id, role]));
|
||||||
|
|
||||||
const getRolesByEdition = (edition = "tb") => {
|
const getRolesByEdition = (edition = "tb") => {
|
||||||
const selectedEdition =
|
const selectedEdition =
|
||||||
editionJSON.find(({ id }) => id === edition) || editionJSON[0];
|
editionJSON.find(({ id }) => id === edition) || editionJSON[0];
|
||||||
|
|
Loading…
Reference in New Issue