mirror of
https://github.com/sp-tarkov/server.git
synced 2025-02-13 09:50:43 -05:00
Add extra protection against null objects inside itemAllowedInContainer()
This commit is contained in:
parent
716df08983
commit
00691becd1
@ -673,8 +673,8 @@ export class BotGeneratorHelper
|
|||||||
protected itemAllowedInContainer(slotGrid: Grid, itemTpl: string): boolean
|
protected itemAllowedInContainer(slotGrid: Grid, itemTpl: string): boolean
|
||||||
{
|
{
|
||||||
const propFilters = slotGrid._props.filters;
|
const propFilters = slotGrid._props.filters;
|
||||||
const excludedFilter = propFilters[0]?.ExcludedFilter;
|
const excludedFilter = propFilters[0]?.ExcludedFilter ?? [];
|
||||||
const filter = propFilters[0]?.Filter;
|
const filter = propFilters[0]?.Filter ?? [];
|
||||||
|
|
||||||
if (propFilters.length === 0)
|
if (propFilters.length === 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user