From 970000f440f43212e600f9a9d7bb41ad819e1ecb Mon Sep 17 00:00:00 2001 From: josh-j <1652991+josh-j@users.noreply.github.com> Date: Thu, 11 Jun 2026 22:49:53 +0200 Subject: [PATCH] Fix: lintObjects throws when pageMeta is undefined (#2021) --- plugs/index/lint.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugs/index/lint.ts b/plugs/index/lint.ts index 267a9723..a1df17f1 100644 --- a/plugs/index/lint.ts +++ b/plugs/index/lint.ts @@ -176,6 +176,10 @@ export async function lintObjects({ text, name, }: LintEvent): Promise { + if (!meta) { + return []; + } + const frontmatter = extractFrontMatter(tree); // Index the page