Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit 61102b8

Browse files
[TypeScript][Virtual Assistant] Fix QnA validation after port #3372 (#3397)
* Fix qna validation * Replicate to VA Sample Co-authored-by: Luis Sergio <[email protected]>
1 parent 05bfc6f commit 61102b8

File tree

2 files changed

+2
-2
lines changed
  • templates/typescript
    • generator-bot-virtualassistant/generators/app/templates/sample-assistant/src/dialogs
    • samples/sample-assistant/src/dialogs

2 files changed

+2
-2
lines changed

templates/typescript/generator-bot-virtualassistant/generators/app/templates/sample-assistant/src/dialogs/mainDialog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export class MainDialog extends ComponentDialog {
182182
}
183183

184184
// QnAMaker dialog already present on the stack?
185-
if (this.dialogs.find(knowledgebaseId) !== undefined) {
185+
if (this.dialogs.find(knowledgebaseId) === undefined) {
186186
return new QnAMakerDialog(
187187
qnaEndpoint.knowledgeBaseId,
188188
qnaEndpoint.endpointKey,

templates/typescript/samples/sample-assistant/src/dialogs/mainDialog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ export class MainDialog extends ComponentDialog {
182182
}
183183

184184
// QnAMaker dialog already present on the stack?
185-
if (this.dialogs.find(knowledgebaseId) !== undefined) {
185+
if (this.dialogs.find(knowledgebaseId) === undefined) {
186186
return new QnAMakerDialog(
187187
qnaEndpoint.knowledgeBaseId,
188188
qnaEndpoint.endpointKey,

0 commit comments

Comments
 (0)