diff --git a/samples/csharp_dotnetcore/43.complex-dialog/Dialogs/ReviewSelectionDialog.cs b/samples/csharp_dotnetcore/43.complex-dialog/Dialogs/ReviewSelectionDialog.cs index 8b06285696..f0932fd4b1 100644 --- a/samples/csharp_dotnetcore/43.complex-dialog/Dialogs/ReviewSelectionDialog.cs +++ b/samples/csharp_dotnetcore/43.complex-dialog/Dialogs/ReviewSelectionDialog.cs @@ -101,7 +101,7 @@ private async Task 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); } } } diff --git a/samples/javascript_nodejs/43.complex-dialog/dialogs/reviewSelectionDialog.js b/samples/javascript_nodejs/43.complex-dialog/dialogs/reviewSelectionDialog.js index d1315e73e8..d03942806c 100644 --- a/samples/javascript_nodejs/43.complex-dialog/dialogs/reviewSelectionDialog.js +++ b/samples/javascript_nodejs/43.complex-dialog/dialogs/reviewSelectionDialog.js @@ -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); } } } diff --git a/samples/python/43.complex-dialog/dialogs/review_selection_dialog.py b/samples/python/43.complex-dialog/dialogs/review_selection_dialog.py index 2119068bb2..b2b3c6f6b7 100644 --- a/samples/python/43.complex-dialog/dialogs/review_selection_dialog.py +++ b/samples/python/43.complex-dialog/dialogs/review_selection_dialog.py @@ -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 )