From 53d316b727483b63d5cfe868474176945a722499 Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Mon, 25 Sep 2023 15:30:03 +0200 Subject: [PATCH] Update packages/core/src/protocol-helpers.ts Co-authored-by: Jan Romann --- packages/core/src/protocol-helpers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/protocol-helpers.ts b/packages/core/src/protocol-helpers.ts index 6f5680940..d18e70ec2 100644 --- a/packages/core/src/protocol-helpers.ts +++ b/packages/core/src/protocol-helpers.ts @@ -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) {