mirror of
https://github.com/documenso/documenso.git
synced 2026-06-22 04:12:06 +10:00
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:
+5
-1
@@ -8,6 +8,7 @@ import {
|
||||
DocumentDistributionMethod,
|
||||
DocumentVisibility,
|
||||
EnvelopeType,
|
||||
RecipientRole,
|
||||
SendStatus,
|
||||
TemplateType,
|
||||
} from '@prisma/client';
|
||||
@@ -234,7 +235,10 @@ export const EnvelopeEditorSettingsDialog = ({
|
||||
|
||||
const envelopeHasBeenSent =
|
||||
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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user