mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-06-30 15:01:01 +02:00
#584 - Generate content type without type field
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user