diff --git a/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/context/FormBlock.tsx b/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/context/FormBlock.tsx index 49dd46c62..1dc54519a 100644 --- a/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/context/FormBlock.tsx +++ b/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/context/FormBlock.tsx @@ -16,8 +16,8 @@ import { createForm, RecursionField, useField, useFieldSchema } from '@tachybase import { useContextApprovalExecution } from './ApprovalExecution'; export const FormBlockProvider = (props) => { - const { approvalExecution } = useContextApprovalExecution(); - const { snapshot } = approvalExecution; + const { approvalExecution, snapshot: contextSnapshot } = useContextApprovalExecution(); + const snapshot = approvalExecution?.snapshot || contextSnapshot; const fieldSchema = useFieldSchema(); const field = useField(); const formBlockRef = useRef(null);