fix(import): accept loadouts without GEAR field
#2671
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "AMelonInsideLemon/SpaceNinjaServer:gear-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
New inventories don't have that field
GEARfield@ -445,3 +445,3 @@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) : [];Why not also make it optional in
ILoadoutDatabaseso you can simplify this toclient.GEAR?.map(convertLoadOutConfig)fix(importer): accept loadouts without `GEAR` fieldto fix(import): accept loadouts without `GEAR` field