fix: resolve envelope editor settings ccer logic (#2628)

## Description

Fix issue where having a CCer for a draft document would prevent
changing the date/timezone and some other settings.
This commit is contained in:
David Nguyen
2026-03-19 14:21:28 +11:00
committed by GitHub
parent 108d422a2e
commit 9cf8ed1d00
@@ -8,6 +8,7 @@ import {
DocumentDistributionMethod, DocumentDistributionMethod,
DocumentVisibility, DocumentVisibility,
EnvelopeType, EnvelopeType,
RecipientRole,
SendStatus, SendStatus,
TemplateType, TemplateType,
} from '@prisma/client'; } from '@prisma/client';
@@ -234,7 +235,10 @@ export const EnvelopeEditorSettingsDialog = ({
const envelopeHasBeenSent = const envelopeHasBeenSent =
envelope.type === EnvelopeType.DOCUMENT && envelope.type === EnvelopeType.DOCUMENT &&
envelope.recipients.some((recipient) => recipient.sendStatus === SendStatus.SENT); envelope.recipients.some(
(recipient) =>
recipient.role !== RecipientRole.CC && recipient.sendStatus === SendStatus.SENT,
);
const emailSettings = form.watch('meta.emailSettings'); const emailSettings = form.watch('meta.emailSettings');