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 532c674 commit f3987b8
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 @@ -139,9 +139,7 @@ export default class ProtocolHelpers {
if (
actionName != null &&
uriScheme != null &&
td?.actions != null &&
td.actions[actionName] != null &&
td.actions[actionName].forms != null &&
td?.actions[actionName]?.forms != null &&

Check failure on line 142 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 142 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.actions[actionName].forms)
) {
for (const form of td.actions[actionName].forms) {
Expand Down

0 comments on commit f3987b8

Please sign in to comment.