processFrontMatter not inserting "---" in frontmatter

HI, it looks like from version 1.5.5 when using processFrontMatter it is not inserting the frontmatter delimiters:
I have this code:

await this.app.fileManager.processFrontMatter(newFile, (fm) => {
            fm[this.plugin.settings.typeAttributeKey] = typename;
        });

it used to produce the following content in the note:

---
type: Meeting
---

not it only produces:

type: Meeting

so, basically, it is not creating the frontmatter section. I am sure it used to work differently. This is unfortunately breaking my plugin. Am I doing something wrong, maybe?

Will be fixed:

2 Likes

@gino_m wonderful, thank you!