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)
) {
for (const form of td.actions[actionName].forms) {
if (form.href && form.href.startsWith(uriScheme) && form.contentType != null) {
Expand Down

0 comments on commit 53d316b

Please sign in to comment.