We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29c4a07 commit d44fb4cCopy full SHA for d44fb4c
packages/core/src/awsService/cloudWatchLogs/commands/tailLogGroup.ts
@@ -73,8 +73,8 @@ async function handleSessionStream(
73
) {
74
try {
75
for await (const event of stream) {
76
- if (event.sessionUpdate !== undefined) {
77
- const formattedLogEvents = event.sessionUpdate.sessionResults!.map<string>((logEvent) =>
+ if (event.sessionUpdate !== undefined && event.sessionUpdate.sessionResults !== undefined) {
+ const formattedLogEvents = event.sessionUpdate.sessionResults.map<string>((logEvent) =>
78
formatLogEvent(logEvent)
79
)
80
if (formattedLogEvents.length !== 0) {
0 commit comments