Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Result is not necessarily defined here #1986

Merged
merged 1 commit into from
Aug 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/botkit/src/conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ export class BotkitConversation<O extends object = {}> extends Dialog<O> {
const index = step.index;
const thread_name = step.thread;
const result = step.result;
const response = result.text || (typeof (result) === 'string' ? result : null);
const response = result == null ? null : (result.text || (typeof (result) === 'string' ? result : null));

// spawn a bot instance so devs can use API or other stuff as necessary
const bot = await this._controller.spawn(dc);
Expand Down