mirror of https://github.com/bra1n/townsquare.git
updating custom edition loading to update the list of travelers not in the current edition
This commit is contained in:
parent
151ea616da
commit
04993633fd
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue