Skip to content

Commit

Permalink
Replacing the waterdall dialog by referencing the component dialog's …
Browse files Browse the repository at this point in the history
…initial dialog ID.
  • Loading branch information
gandiddi committed Apr 5, 2024
1 parent 93bf764 commit ebaabcf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private async Task<DialogTurnResult> LoopStepAsync(
else
{
// Otherwise, repeat this dialog, passing in the list from this iteration.
return await stepContext.ReplaceDialogAsync(nameof(ReviewSelectionDialog), list, cancellationToken);
return await stepContext.ReplaceDialogAsync(InitialDialogId, list, cancellationToken);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class ReviewSelectionDialog extends ComponentDialog {
return await stepContext.endDialog(list);
} else {
// Otherwise, repeat this dialog, passing in the list from this iteration.
return await stepContext.replaceDialog(REVIEW_SELECTION_DIALOG, list);
return await stepContext.replaceDialog(this.initialDialogId, list);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,5 @@ async def loop_step(self, step_context: WaterfallStepContext) -> DialogTurnResul

# Otherwise, repeat this dialog, passing in the selections from this iteration.
return await step_context.replace_dialog(
ReviewSelectionDialog.__name__, selected
self.initial_dialog_id, selected
)

0 comments on commit ebaabcf

Please sign in to comment.