From 140e8f770324729b8eff8309a1d336ec6f4e9177 Mon Sep 17 00:00:00 2001 From: istarkov Date: Wed, 8 May 2024 01:37:48 +0300 Subject: [PATCH] Fix form action --- packages/sdk-components-react-remix/src/remix-form.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/sdk-components-react-remix/src/remix-form.tsx b/packages/sdk-components-react-remix/src/remix-form.tsx index bd2d9ac7347a..960093d18b94 100644 --- a/packages/sdk-components-react-remix/src/remix-form.tsx +++ b/packages/sdk-components-react-remix/src/remix-form.tsx @@ -13,7 +13,11 @@ export const RemixForm = forwardRef< } >((props, ref) => { // remix casts action to relative url - if (props.action === "" || props.action?.startsWith("/")) { + if ( + props.action === undefined || + props.action === "" || + props.action?.startsWith("/") + ) { return
; } return ;