Skip to content

Commit

Permalink
Update packages/core/src/protocol-helpers.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Romann <[email protected]>
  • Loading branch information
danielpeintner and JKRhb authored Sep 25, 2023
1 parent f3987b8 commit 6cfe425
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/core/src/protocol-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,7 @@ export default class ProtocolHelpers {
if (
eventName != null &&
uriScheme != null &&
td?.events != null &&
td.events[eventName] != null &&
td.events[eventName].forms != null &&
td?.events[eventName]?.forms != null &&

Check failure on line 164 in packages/core/src/protocol-helpers.ts

View workflow job for this annotation

GitHub Actions / setup-and-test (ubuntu-latest, 18.x)

Object is possibly 'undefined'.

Check failure on line 164 in packages/core/src/protocol-helpers.ts

View workflow job for this annotation

GitHub Actions / setup-and-test (ubuntu-latest, 20.x)

Object is possibly 'undefined'.
Array.isArray(td.events[eventName].forms)
) {
for (const form of td.events[eventName].forms) {
Expand Down

0 comments on commit 6cfe425

Please sign in to comment.