Skip to content

Commit

Permalink
addfrontmatter
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGB committed Jun 2, 2022
1 parent ea67b3c commit 46f95ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/VaultManagement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export async function updateRowFile(file: TFile, columnId: string, newValue: str
// Execute action
if (updateOptions[option]) {
// Check if file has frontmatter
if (rowFields.frontmatter) {
if (!hasFrontmatterKey(content)) {
// If not, add it
await addFrontmatter();
}
Expand Down

0 comments on commit 46f95ca

Please sign in to comment.