#280 - Fix for date fields

This commit is contained in:
Elio Struyf
2022-03-07 09:27:38 +01:00
parent 3ca6f32628
commit 04390b461f
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -16,6 +16,7 @@
### 🐞 Fixes
- [#279](https://github.com/estruyf/vscode-front-matter/issues/279): Fix for content dashboard updates for all registered types
- [#280](https://github.com/estruyf/vscode-front-matter/issues/280): Fix to not automatically set dates on new files that do not contain front matter
## [6.1.1] - 2022-03-02
+1 -1
View File
@@ -134,7 +134,7 @@ export class DataListener extends BaseListener {
}
const article = ArticleHelper.getFrontMatter(editor);
if (!article) {
if (!article || !article.data || Object.keys(article.data).length === 0) {
return;
}