We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5cd926 commit 87442e2Copy full SHA for 87442e2
1 file changed
packages/core/src/utils/getActivityLivestreamingMetadata.ts
@@ -187,12 +187,19 @@ export default function getActivityLivestreamingMetadata(activity: WebChatActivi
187
type: 'contentless' | 'final activity' | 'informative message' | 'interim activity';
188
}>
189
| undefined {
190
- let activityResult;
191
- let streamingDataResult;
+ let activityResult: any;
+ let streamingDataResult: any;
192
193
if (activity.entities) {
194
activityResult = safeParse(entitiesStreamingActivitySchema, activity);
195
streamingDataResult = safeParse(streamingDataSchema, activity.entities[0]);
196
+ } else {
197
+ activityResult = {
198
+ success: false
199
+ };
200
+ streamingDataResult = {
201
202
203
}
204
205
if (!(activityResult.success && streamingDataResult.success) && activity.channelData) {
0 commit comments