diff --git a/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/initiations/hook/useFormBlockProps.tsx b/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/initiations/hook/useFormBlockProps.tsx index 14f636355..8b6ec6df7 100644 --- a/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/initiations/hook/useFormBlockProps.tsx +++ b/packages/plugins/@hera/plugin-approval-mobile/src/client/approval/initiations/hook/useFormBlockProps.tsx @@ -5,17 +5,22 @@ import { useForm } from '@tachybase/schema'; import { ApprovalStatusEnums } from '../../constants'; import { useContextApprovalExecution } from '../../context/ApprovalExecution'; +import { useResubmit } from '../provider/Resubmit.provider'; export function useFormBlockProps() { const { approval, id } = useContextApprovalExecution(); const { workflow } = approval; const form = useForm(); const { data } = useCurrentUserContext(); + const { isResubmit } = useResubmit(); const { editable } = ApprovalStatusEnums.find((value) => value.value === approval.status); const needEditable = - editable && approval?.latestExecutionId === id && approval?.createdById === data?.data.id && workflow.enabled; + (isResubmit || editable) && + approval?.latestExecutionId === id && + approval?.createdById === data?.data.id && + workflow.enabled; useEffect(() => { if (!approval) {