mirror of
https://github.com/documenso/documenso.git
synced 2025-11-10 04:22:32 +10:00
Remove document on go back click on step 1
Invoke onBackStep on "go back" click and conditionally render go back label
This commit is contained in:
@ -566,7 +566,9 @@ export const AddFieldsFormPartial = ({
|
||||
onGoBackClick={() => {
|
||||
previousStep();
|
||||
remove();
|
||||
documentFlow.onBackStep?.();
|
||||
}}
|
||||
goBackLabel={currentStep === 1 && typeof documentFlow.onBackStep === "function" ? "Remove" : undefined}
|
||||
onGoNextClick={() => void onFormSubmit()}
|
||||
/>
|
||||
</DocumentFlowFormContainerFooter>
|
||||
|
||||
Reference in New Issue
Block a user