diff --git a/src/utils.ts b/src/utils.ts index fceec97..3536278 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -175,7 +175,11 @@ export async function verifyOrAddFrontMatter( ): Promise { let locationAdded = false; await app.fileManager.processFrontMatter(file, (frontmatter: any) => { - if (fieldName in frontmatter && skipIfExists) { + if ( + fieldName in frontmatter && + frontmatter[fieldName] !== null && + skipIfExists + ) { locationAdded = false; return; }