Fix prompt manager sometimes erroring in groups with null members

This commit is contained in:
Cohee 2023-08-19 03:19:12 +03:00
parent 059647b286
commit 1305f9dc4c
1 changed files with 1 additions and 1 deletions

View File

@ -825,7 +825,7 @@ PromptManagerModule.prototype.handleGroupSelected = function (event) {
*/
PromptManagerModule.prototype.getActiveGroupCharacters = function() {
// ToDo: Ideally, this should return the actual characters.
return (this.activeCharacter?.group?.members || []).map(member => member.substring(0, member.lastIndexOf('.')));
return (this.activeCharacter?.group?.members || []).map(member => member && member.substring(0, member.lastIndexOf('.')));
}
/**