diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f1cedf5..a574a4d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/panelWebView/components/Fields/WrapperField.tsx b/src/panelWebView/components/Fields/WrapperField.tsx index 9de2e2ae..ab14bbbd 100644 --- a/src/panelWebView/components/Fields/WrapperField.tsx +++ b/src/panelWebView/components/Fields/WrapperField.tsx @@ -153,7 +153,9 @@ export const WrapperField: React.FunctionComponent = ({ onSendUpdate(field.name, field.default, parentFields); } - return null; + if (field.hidden) { + return null; + } } // Conditional fields