diff --git a/project/src/services/BotEquipmentModPoolService.ts b/project/src/services/BotEquipmentModPoolService.ts index 23d08f46..72950a3c 100644 --- a/project/src/services/BotEquipmentModPoolService.ts +++ b/project/src/services/BotEquipmentModPoolService.ts @@ -83,7 +83,7 @@ export class BotEquipmentModPoolService // Check item added into array for slots, need to iterate over those const subItemDetails = this.databaseServer.getTables().templates.items[itemToAdd]; - const hasSubItemsToAdd = subItemDetails._props.Slots?.length > 0; + const hasSubItemsToAdd = subItemDetails?._props?.Slots?.length > 0; if (hasSubItemsToAdd) { // Recursive call