mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-05-07 05:44:35 +02:00
#547 - check for parent field
This commit is contained in:
@@ -146,7 +146,7 @@ export const WrapperField: React.FunctionComponent<IWrapperFieldProps> = ({
|
||||
}, []);
|
||||
|
||||
if (field.hidden || fieldValue === undefined) {
|
||||
if (field.hidden && fieldValue === undefined && field.default) {
|
||||
if (field.hidden && fieldValue === undefined && field.default && parentFields.length > 0) {
|
||||
onSendUpdate(field.name, field.default, parentFields);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user