fix: 修复手机端我的发起出错 (#1073)

Reviewed-on: daoyoucloud/tachybase#1073
Co-authored-by: wjh <wwwjh0710@163.com>
Co-committed-by: wjh <wwwjh0710@163.com>
This commit is contained in:
wjh 2024-05-30 11:09:48 +08:00 committed by baizixv
parent da87d7251b
commit f988b2ba30

View File

@ -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);