fix(web): prevent crash adding log entry for keystroke with inputBreadCrumb

Fixes: #16760
Fixes: [KEYMAN_WEB_YH](https://keyman.sentry.io/issues/7661231665/?referrer=github_integration)
Cherry-pick: #16761
Build-bot: skip
Test-bot: skip
This commit is contained in:
Eberhard Beilharz 2026-10-08 18:25:14 +02:00
parent 5133100658
commit 59e032fd60
No known key found for this signature in database
GPG key ID: E9140597606020D3

View file

@ -22,7 +22,7 @@ export class TranscriptionCache extends RewindableCache<Transcription> {
});
return entries
.map(({key, entry}) => `Context state ${key}'s keystroke:\n${entry.keystroke.inputBreadcrumb ?? ''}`)
.map(({key, entry}) => `Context state ${key}'s keystroke:\n${entry?.keystroke?.inputBreadcrumb ?? ''}`)
.join('\n');
}
}
}