Skip to content

Commit

Permalink
fix: use delete for removing frontmatter keys
Browse files Browse the repository at this point in the history
  • Loading branch information
kometenstaub committed Apr 29, 2023
1 parent 0e1f910 commit 51c5523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/methods/methods-write.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class WriteMethods {
for (const el of els) {
// only remove keys that are activated by the user
if (el.length > 0) {
frontmatter[el] = undefined;
delete frontmatter[el]
}
}
});
Expand Down

0 comments on commit 51c5523

Please sign in to comment.