chore: revert changes based on feedback

This commit is contained in:
Catalin Pit
2025-07-07 12:04:20 +03:00
parent 52b474d12b
commit eb78706f35
9 changed files with 154 additions and 107 deletions

View File

@ -138,7 +138,6 @@ export const TemplateEditForm = ({
title: data.title,
externalId: data.externalId || null,
visibility: data.visibility,
attachments: data.attachments ?? [],
globalAccessAuth: parsedGlobalAccessAuth.success ? parsedGlobalAccessAuth.data : [],
globalActionAuth: data.globalActionAuth ?? [],
},
@ -170,14 +169,6 @@ export const TemplateEditForm = ({
await Promise.all([
updateTemplateSettings({
templateId: template.id,
data: {
attachments: template.attachments?.map((attachment) => ({
id: attachment.id,
label: attachment.label,
url: attachment.url,
formId: attachment.id,
})),
},
meta: {
signingOrder: data.signingOrder,
allowDictateNextSigner: data.allowDictateNextSigner,