Added additional nullguard protection to getSealedContainerWeaponModRewards()
This commit is contained in:
parent
e650271d3a
commit
4f65442fe7
@ -516,7 +516,7 @@ export class LootGenerator {
|
|||||||
|
|
||||||
// Get items that fulfil reward type criteria from items that fit on gun
|
// Get items that fulfil reward type criteria from items that fit on gun
|
||||||
const relatedItems = linkedItemsToWeapon?.filter(
|
const relatedItems = linkedItemsToWeapon?.filter(
|
||||||
(item) => item._parent === rewardTypeId && !this.itemFilterService.isItemBlacklisted(item._id),
|
(item) => item?._parent === rewardTypeId && !this.itemFilterService.isItemBlacklisted(item._id),
|
||||||
);
|
);
|
||||||
if (!relatedItems || relatedItems.length === 0) {
|
if (!relatedItems || relatedItems.length === 0) {
|
||||||
this.logger.debug(
|
this.logger.debug(
|
||||||
|
Loading…
Reference in New Issue
Block a user