mirror of
				https://github.com/bra1n/townsquare.git
				synced 2025-10-21 16:55:12 +00:00 
			
		
		
		
	updating custom edition loading to update the list of travelers not in the current edition
This commit is contained in:
		
							parent
							
								
									151ea616da
								
							
						
					
					
						commit
						04993633fd
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
					@ -194,6 +194,13 @@ export default new Vuex.Store({
 | 
				
			||||||
          // convert to Map
 | 
					          // convert to Map
 | 
				
			||||||
          .map(role => [role.id, role])
 | 
					          .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) {
 | 
					    setEdition(state, edition) {
 | 
				
			||||||
      if (editionJSONbyId.has(edition.id)) {
 | 
					      if (editionJSONbyId.has(edition.id)) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue