diff --git a/src/services/importService.ts b/src/services/importService.ts index 3337a243..4b0685ab 100644 --- a/src/services/importService.ts +++ b/src/services/importService.ts @@ -444,7 +444,7 @@ export const importLoadOutPresets = (db: ILoadoutDatabase, client: ILoadOutPrese db.NORMAL_PVP = client.NORMAL_PVP.map(convertLoadOutConfig); db.LUNARO = client.LUNARO.map(convertLoadOutConfig); db.OPERATOR = client.OPERATOR.map(convertLoadOutConfig); - db.GEAR = client.GEAR.map(convertLoadOutConfig); + db.GEAR = client.GEAR ? client.GEAR.map(convertLoadOutConfig) : []; db.KDRIVE = client.KDRIVE.map(convertLoadOutConfig); db.DATAKNIFE = client.DATAKNIFE.map(convertLoadOutConfig); db.MECH = client.MECH.map(convertLoadOutConfig); diff --git a/src/types/saveLoadoutTypes.ts b/src/types/saveLoadoutTypes.ts index 9e8e5bf9..c3a146aa 100644 --- a/src/types/saveLoadoutTypes.ts +++ b/src/types/saveLoadoutTypes.ts @@ -96,7 +96,7 @@ export interface ILoadOutPresets { ARCHWING: ILoadoutConfigClient[]; SENTINEL: ILoadoutConfigClient[]; OPERATOR: ILoadoutConfigClient[]; - GEAR: ILoadoutConfigClient[]; + GEAR?: ILoadoutConfigClient[]; KDRIVE: ILoadoutConfigClient[]; DATAKNIFE: ILoadoutConfigClient[]; MECH: ILoadoutConfigClient[];