fix(import): accept loadouts without GEAR field #2671

Merged
Sainan merged 2 commits from AMelonInsideLemon/SpaceNinjaServer:gear-fix into main 2025-08-21 11:25:51 -07:00

New inventories don't have that field

New inventories don't have that field
AMelonInsideLemon added 1 commit 2025-08-20 08:28:58 -07:00
fix(importer): accept loadouts without GEAR field
All checks were successful
Build / build (pull_request) Successful in 55s
c297ac01e9
New inventories don't have that field
Sainan approved these changes 2025-08-20 10:17:21 -07:00
Sainan reviewed 2025-08-20 12:46:40 -07:00
@ -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) : [];
Owner

Why not also make it optional in ILoadoutDatabase so you can simplify this to client.GEAR?.map(convertLoadOutConfig)

Why not also make it optional in `ILoadoutDatabase` so you can simplify this to `client.GEAR?.map(convertLoadOutConfig)`
Sainan marked this conversation as resolved
AMelonInsideLemon added 1 commit 2025-08-21 07:36:04 -07:00
GEAR optional in database
All checks were successful
Build / build (pull_request) Successful in 1m20s
1eff3e8df2
Sainan merged commit 1e4007f6da into main 2025-08-21 11:25:51 -07:00
Sainan deleted branch gear-fix 2025-08-21 11:25:51 -07:00
Sainan changed title from fix(importer): accept loadouts without `GEAR` field to fix(import): accept loadouts without `GEAR` field 2025-08-21 11:27:52 -07:00
Sign in to join this conversation.
No description provided.