Skip to content

Commit

Permalink
fix: revert back to getValues() in openRelate and processAction (#851)
Browse files Browse the repository at this point in the history
  • Loading branch information
mguellsegarra authored Jan 27, 2025
1 parent 2fb5d11 commit b95b220
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/actionbar/FormActionBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b95b220

Please sign in to comment.