Skip to content

The Open Source DocuSign Alternative.

fix: correctly use default distribute envelope tab (#3010)

David Nguyend9b772232527
diff --git a/apps/remix/app/components/dialogs/envelope-distribute-dialog.tsx b/apps/remix/app/components/dialogs/envelope-distribute-dialog.tsx
index 750ab38f2..211746faf 100644
--- a/apps/remix/app/components/dialogs/envelope-distribute-dialog.tsx
+++ b/apps/remix/app/components/dialogs/envelope-distribute-dialog.tsx
@@ -206,6 +206,11 @@ export const EnvelopeDistributeDialog = ({
};
useEffect(() => {
+ // Default the distribution method tab to the envelope's configured setting.
+ if (isOpen && envelope.documentMeta) {
+ setValue('meta.distributionMethod', envelope.documentMeta.distributionMethod);
+ }
+
// Resync the whole envelope if the envelope is mid saving.
if (isOpen && (isAutosaving || autosaveError)) {
void handleSync();