mirror of
https://github.com/documenso/documenso.git
synced 2026-07-14 14:57:12 +10:00
fix: correctly use default distribute envelope tab (#3010)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user