bug: fix type
This commit is contained in:
parent
05fc7bd6ac
commit
8be2b2c222
@ -49,7 +49,7 @@ export default function ContractEditor({ onSaved, editingTemplateId, onCancelEdi
|
||||
const tpl = await getTemplate(editingTemplateId);
|
||||
setName(tpl.name || '');
|
||||
setHtmlCode(tpl.html || '');
|
||||
setDescription((tpl.description as any) || '');
|
||||
setDescription(((tpl as any)?.description as string) || ''); // FIX: DocumentTemplate may not declare `description`
|
||||
setLang((tpl.lang as any) || 'en');
|
||||
setType((tpl.type as any) || 'contract');
|
||||
setContractType(((tpl.contract_type as any) || 'contract') as 'contract' | 'gdpr');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user