Skip to content

Commit a741057

Browse files
committed
Fixed a bug in CommandDialog preventing onDefault() handlers from resuming properly. Published a new version of the NPM.
1 parent df9da3f commit a741057

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Node/lib/dialogs/CommandDialog.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ var CommandDialog = (function (_super) {
7676
if (handler >= 0 && handler < this.commands.length) {
7777
cur = this.commands[handler];
7878
}
79-
else if (handler > this.commands.length && this.default) {
79+
else if (handler >= this.commands.length && this.default) {
8080
cur = this.default;
8181
}
8282
if (cur) {

Node/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "botbuilder",
33
"author": "Microsoft Corp.",
44
"description": "Bot Builder is a dialog system for building rich bots on virtually any platform.",
5-
"version": "0.10.1",
5+
"version": "0.10.2",
66
"license": "MIT",
77
"keywords": [
88
"botbuilder",

Node/src/dialogs/CommandDialog.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export class CommandDialog extends dialog.Dialog {
112112
var handler = session.dialogData[consts.Data.Handler];
113113
if (handler >= 0 && handler < this.commands.length) {
114114
cur = this.commands[handler];
115-
} else if (handler > this.commands.length && this.default) {
115+
} else if (handler >= this.commands.length && this.default) {
116116
cur = this.default;
117117
}
118118
if (cur) {

0 commit comments

Comments
 (0)