updating custom edition loading to update the list of travelers not in the current edition

This commit is contained in:
Dave 2021-01-15 16:33:33 +00:00
parent 151ea616da
commit 04993633fd
1 changed files with 7 additions and 0 deletions

View File

@ -194,6 +194,13 @@ export default new Vuex.Store({
// convert to Map
.map(role => [role.id, role])
);
// update travelers by edition list
state.extraTravellers = new Map(
rolesJSON
.filter(r => r.team === "traveler" && !roles.some(i => i.id === r.id))
.map(role => [role.id, role])
);
},
setEdition(state, edition) {
if (editionJSONbyId.has(edition.id)) {