Skip to content

Commit

Permalink
#280 - Fix for date fields
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf committed Mar 7, 2022
1 parent 3ca6f32 commit 04390b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/listeners/panel/DataListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 04390b4

Please sign in to comment.