fix(import): accept loadouts without GEAR field
			#2671
		
		
	@ -444,7 +444,7 @@ export const importLoadOutPresets = (db: ILoadoutDatabase, client: ILoadOutPrese
 | 
				
			|||||||
    db.NORMAL_PVP = client.NORMAL_PVP.map(convertLoadOutConfig);
 | 
					    db.NORMAL_PVP = client.NORMAL_PVP.map(convertLoadOutConfig);
 | 
				
			||||||
    db.LUNARO = client.LUNARO.map(convertLoadOutConfig);
 | 
					    db.LUNARO = client.LUNARO.map(convertLoadOutConfig);
 | 
				
			||||||
    db.OPERATOR = client.OPERATOR.map(convertLoadOutConfig);
 | 
					    db.OPERATOR = client.OPERATOR.map(convertLoadOutConfig);
 | 
				
			||||||
    db.GEAR = client.GEAR.map(convertLoadOutConfig);
 | 
					    db.GEAR = client.GEAR?.map(convertLoadOutConfig);
 | 
				
			||||||
| 
							
							
								
									
	
	
	
	
	
	
	
	 
					
					Sainan marked this conversation as resolved
					
						
						
							Outdated
						
					
				 
				 | 
					|||||||
    db.KDRIVE = client.KDRIVE.map(convertLoadOutConfig);
 | 
					    db.KDRIVE = client.KDRIVE.map(convertLoadOutConfig);
 | 
				
			||||||
    db.DATAKNIFE = client.DATAKNIFE.map(convertLoadOutConfig);
 | 
					    db.DATAKNIFE = client.DATAKNIFE.map(convertLoadOutConfig);
 | 
				
			||||||
    db.MECH = client.MECH.map(convertLoadOutConfig);
 | 
					    db.MECH = client.MECH.map(convertLoadOutConfig);
 | 
				
			||||||
 | 
				
			|||||||
@ -79,7 +79,7 @@ export interface ILoadoutDatabase {
 | 
				
			|||||||
    NORMAL_PVP: ILoadoutConfigDatabase[];
 | 
					    NORMAL_PVP: ILoadoutConfigDatabase[];
 | 
				
			||||||
    LUNARO: ILoadoutConfigDatabase[];
 | 
					    LUNARO: ILoadoutConfigDatabase[];
 | 
				
			||||||
    OPERATOR: ILoadoutConfigDatabase[];
 | 
					    OPERATOR: ILoadoutConfigDatabase[];
 | 
				
			||||||
    GEAR: ILoadoutConfigDatabase[];
 | 
					    GEAR?: ILoadoutConfigDatabase[];
 | 
				
			||||||
    KDRIVE: ILoadoutConfigDatabase[];
 | 
					    KDRIVE: ILoadoutConfigDatabase[];
 | 
				
			||||||
    DATAKNIFE: ILoadoutConfigDatabase[];
 | 
					    DATAKNIFE: ILoadoutConfigDatabase[];
 | 
				
			||||||
    MECH: ILoadoutConfigDatabase[];
 | 
					    MECH: ILoadoutConfigDatabase[];
 | 
				
			||||||
@ -96,7 +96,7 @@ export interface ILoadOutPresets {
 | 
				
			|||||||
    ARCHWING: ILoadoutConfigClient[];
 | 
					    ARCHWING: ILoadoutConfigClient[];
 | 
				
			||||||
    SENTINEL: ILoadoutConfigClient[];
 | 
					    SENTINEL: ILoadoutConfigClient[];
 | 
				
			||||||
    OPERATOR: ILoadoutConfigClient[];
 | 
					    OPERATOR: ILoadoutConfigClient[];
 | 
				
			||||||
    GEAR: ILoadoutConfigClient[];
 | 
					    GEAR?: ILoadoutConfigClient[];
 | 
				
			||||||
    KDRIVE: ILoadoutConfigClient[];
 | 
					    KDRIVE: ILoadoutConfigClient[];
 | 
				
			||||||
    DATAKNIFE: ILoadoutConfigClient[];
 | 
					    DATAKNIFE: ILoadoutConfigClient[];
 | 
				
			||||||
    MECH: ILoadoutConfigClient[];
 | 
					    MECH: ILoadoutConfigClient[];
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	
Why not also make it optional in
ILoadoutDatabaseso you can simplify this toclient.GEAR?.map(convertLoadOutConfig)