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:
		
							parent
							
								
									da87d7251b
								
							
						
					
					
						commit
						f988b2ba30
					
				@ -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);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user