Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 46f95ca

Browse files
committed
addfrontmatter
1 parent ea67b3c commit 46f95ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/VaultManagement.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ export async function updateRowFile(file: TFile, columnId: string, newValue: str
266266
// Execute action
267267
if (updateOptions[option]) {
268268
// Check if file has frontmatter
269-
if (rowFields.frontmatter) {
269+
if (!hasFrontmatterKey(content)) {
270270
// If not, add it
271271
await addFrontmatter();
272272
}

0 commit comments

Comments
 (0)