Guard against empty RepeatableQuests
array in profile
This commit is contained in:
parent
fa054307dd
commit
aeea8f6e49
@ -563,6 +563,10 @@ export class ProfileFixerService
|
|||||||
this.logger.debug("Missing RepeatableQuests property added to profile");
|
this.logger.debug("Missing RepeatableQuests property added to profile");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
pmcProfile.RepeatableQuests = [];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -925,7 +929,7 @@ export class ProfileFixerService
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const repeatable of fullProfile.characters.pmc.RepeatableQuests)
|
for (const repeatable of fullProfile.characters.pmc.RepeatableQuests ?? [])
|
||||||
{
|
{
|
||||||
for (const activeQuest of repeatable.activeQuests ?? [])
|
for (const activeQuest of repeatable.activeQuests ?? [])
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user