mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix prompt manager sometimes erroring in groups with null members
This commit is contained in:
@ -825,7 +825,7 @@ PromptManagerModule.prototype.handleGroupSelected = function (event) {
|
|||||||
*/
|
*/
|
||||||
PromptManagerModule.prototype.getActiveGroupCharacters = function() {
|
PromptManagerModule.prototype.getActiveGroupCharacters = function() {
|
||||||
// ToDo: Ideally, this should return the actual characters.
|
// 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('.')));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user