FIx dialogs not showing
This commit is contained in:
parent
30bd9545f5
commit
14c6104b65
@ -72,7 +72,7 @@ export class DialogueController
|
|||||||
public generateDialogueList(sessionID: string): DialogueInfo[]
|
public generateDialogueList(sessionID: string): DialogueInfo[]
|
||||||
{
|
{
|
||||||
const data: 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));
|
data.push(this.getDialogueInfo(dialogueId, sessionID));
|
||||||
}
|
}
|
||||||
@ -88,7 +88,8 @@ export class DialogueController
|
|||||||
*/
|
*/
|
||||||
public getDialogueInfo(dialogueID: string, sessionID: string): DialogueInfo
|
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 = {
|
const result: DialogueInfo = {
|
||||||
_id: dialogueID,
|
_id: dialogueID,
|
||||||
|
Loading…
Reference in New Issue
Block a user