#584 - Generate content type without type field

This commit is contained in:
Elio Struyf
2023-05-16 13:17:05 +02:00
parent 25ddadd5d6
commit 7a2a2004f6
-8
View File
@@ -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) {