Show non-empty fields in metadata panel #849

This commit is contained in:
Elio Struyf
2024-09-18 09:18:58 +02:00
parent 620966c08e
commit 121a84659f
2 changed files with 4 additions and 1 deletions

View File

@@ -18,6 +18,7 @@
- [#842](https://github.com/estruyf/vscode-front-matter/issues/842): Allow to set the `frontMatter.taxonomy.slugTemplate` setting to an empty string
- [#845](https://github.com/estruyf/vscode-front-matter/issues/845): Fix empty values for number fields
- [#849](https://github.com/estruyf/vscode-front-matter/issues/849): Show fields which are not empty in the metadata panel
### 🚧 Work in progress

View File

@@ -153,7 +153,9 @@ export const WrapperField: React.FunctionComponent<IWrapperFieldProps> = ({
onSendUpdate(field.name, field.default, parentFields);
}
return null;
if (field.hidden) {
return null;
}
}
// Conditional fields