FIx dialogs not showing

This commit is contained in:
Dev 2023-08-04 18:58:00 +01:00
parent 30bd9545f5
commit 14c6104b65

View File

@ -72,7 +72,7 @@ export class DialogueController
public generateDialogueList(sessionID: string): DialogueInfo[]
{
const data: DialogueInfo[] = [];
for (const dialogueId in this.dialogueHelper.getDialogsForProfile(sessionID).dialogues)
for (const dialogueId in this.dialogueHelper.getDialogsForProfile(sessionID))
{
data.push(this.getDialogueInfo(dialogueId, sessionID));
}
@ -88,7 +88,8 @@ export class DialogueController
*/
public getDialogueInfo(dialogueID: string, sessionID: string): DialogueInfo
{
const dialogue = this.dialogueHelper.getDialogsForProfile(sessionID).dialogues[dialogueID];
const dialogs = this.dialogueHelper.getDialogsForProfile(sessionID);
const dialogue = dialogs[dialogueID];
const result: DialogueInfo = {
_id: dialogueID,