From 7a2a2004f69943b30862d3bb9cdea5ad62529a93 Mon Sep 17 00:00:00 2001 From: Elio Struyf Date: Tue, 16 May 2023 13:17:05 +0200 Subject: [PATCH] #584 - Generate content type without type field --- src/helpers/ContentType.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/helpers/ContentType.ts b/src/helpers/ContentType.ts index acd08025..2713eab2 100644 --- a/src/helpers/ContentType.ts +++ b/src/helpers/ContentType.ts @@ -187,14 +187,6 @@ export class ContentType { } const fields = ContentType.generateFields(content.data); - if (!overrideBool && !fields.some((f) => f.name === 'type')) { - fields.push({ - name: 'type', - type: 'string', - default: contentTypeName, - hidden: true - } as Field); - } // Update the type field in the page if (!overrideBool && editor) {