Fix: lintObjects throws when pageMeta is undefined (#2021)

This commit is contained in:
josh-j
2026-06-11 22:49:53 +02:00
committed by GitHub
parent 756cd9fad4
commit 970000f440
+4
View File
@@ -176,6 +176,10 @@ export async function lintObjects({
text,
name,
}: LintEvent): Promise<LintDiagnostic[]> {
if (!meta) {
return [];
}
const frontmatter = extractFrontMatter(tree);
// Index the page