Fix: lintObjects throws when pageMeta is undefined (#2021)
This commit is contained in:
@@ -176,6 +176,10 @@ export async function lintObjects({
|
||||
text,
|
||||
name,
|
||||
}: LintEvent): Promise<LintDiagnostic[]> {
|
||||
if (!meta) {
|
||||
return [];
|
||||
}
|
||||
|
||||
const frontmatter = extractFrontMatter(tree);
|
||||
|
||||
// Index the page
|
||||
|
||||
Reference in New Issue
Block a user