Fields to exclude
diff --git a/src/views/components/TemplateBuilder.ts b/src/views/components/TemplateBuilder.ts
index 77f993d9..376ae0e7 100644
--- a/src/views/components/TemplateBuilder.ts
+++ b/src/views/components/TemplateBuilder.ts
@@ -115,7 +115,15 @@ export const makeModel = (formDefinition: FormDefinition) => {
function omitField(name: string, value: boolean) {
setField(name, { omit: value } as Field);
}
- return { fields, setField, code, omitField, toggleAllFrontmatter, options };
+ return {
+ fields,
+ setField,
+ code,
+ omitField,
+ toggleAllFrontmatter,
+ options,
+ title: formDefinition.name,
+ };
};
export type TemplateBuilderModel = ReturnType;