From b95b2206c0392f1753b115fa28c005b2a6faebf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20G=C3=BCell=20Segarra?= Date: Mon, 27 Jan 2025 13:26:17 +0100 Subject: [PATCH] fix: revert back to getValues() in openRelate and processAction (#851) https://github.com/gisce/webclient/issues/1713 --- src/actionbar/FormActionBar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actionbar/FormActionBar.tsx b/src/actionbar/FormActionBar.tsx index deb76d79..d6f92e22 100644 --- a/src/actionbar/FormActionBar.tsx +++ b/src/actionbar/FormActionBar.tsx @@ -152,7 +152,7 @@ function FormActionBar({ toolbar }: { toolbar: any }) { (actionData: any) => { processAction?.({ actionData, - values: (formRef.current as any).getPlainValues(), + values: (formRef.current as any).getValues(), fields: (formRef.current as any).getFields(), context: (formRef.current as any).getContext(), onRefreshParentValues: () => (formRef.current as any).fetchValues(), @@ -347,7 +347,7 @@ function FormActionBar({ toolbar }: { toolbar: any }) { if (result.succeed) { openRelate({ relateData: relate, - values: (formRef.current as any).getPlainValues(), + values: (formRef.current as any).getValues(), fields: (formRef.current as any).getFields(), action_id: relate.id, action_type: relate.type,