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 f5d4f60 commit 53d316b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/protocol-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ export default class ProtocolHelpers {
actionName != null &&
uriScheme != null &&
td?.actions &&
td?.actions[actionName]?.forms != null &&
Array.isArray(td.actions[actionName].forms)
td.actions != null &&
Array.isArray(td.actions[actionName]?.forms)

Check warning on line 144 in packages/core/src/protocol-helpers.ts

View check run for this annotation

Codecov / codecov/patch

packages/core/src/protocol-helpers.ts#L140-L144

Added lines #L140 - L144 were not covered by tests
) {
for (const form of td.actions[actionName].forms) {
if (form.href && form.href.startsWith(uriScheme) && form.contentType != null) {

Check warning on line 147 in packages/core/src/protocol-helpers.ts

View check run for this annotation

Codecov / codecov/patch

packages/core/src/protocol-helpers.ts#L147

Added line #L147 was not covered by tests
Expand Down

0 comments on commit 53d316b

Please sign in to comment.