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

This commit is contained in:
David Nguyen
2026-06-22 16:27:50 +10:00
committed by GitHub
parent 783123f72b
commit d9b7722325
@@ -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();