返回提交历史
Modified
src/services/saveLoadoutService.ts
+1
-1
XFEstudio/XFESpaceNinjaServer
chore: handle empty oid in CurrentLoadOutIds (#3354)
Closes #3346 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3354 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
971c54a0
代码差异
1 个文件
+1
-1
@@ -193,7 +193,7 @@ export const handleInventoryItemConfigChange = async (
193
193
const loadoutIds = equipment as IOidWithLegacySupport[]; // TODO: Check for more than just an array of oids, I think i remember one instance
194
194
const ids: Types.ObjectId[] = [];
195
195
loadoutIds.forEach(x => {
196
ids.push(toObjectId(fromOid(x)));
196
ids.push(toObjectId(fromOid(x) || "000000000000000000000000"));
197
197
});
198
198
inventory.CurrentLoadOutIds = ids;
199
199
break;