From e232ad43fcbb3bbfa845d292a258519b80a4cd59 Mon Sep 17 00:00:00 2001 From: Harkirat Date: Wed, 5 Aug 2026 20:09:31 +0530 Subject: [PATCH] fix(search): type Notion block values as any for build Object.values on the (any-typed) recordMap block fell back to {} and lost the element type under next build, causing a type error. Annotate Object.values. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- apps/web/lib/search.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/lib/search.ts b/apps/web/lib/search.ts index 0a0bacc9..05a6e476 100644 --- a/apps/web/lib/search.ts +++ b/apps/web/lib/search.ts @@ -22,7 +22,7 @@ export async function scrapeData({ trackId }: { trackId: string }) { track?.problems.map(async (problem: any) => { const notionDocId = problem.notionDocId; const notionPage = await fetchNotionPage(notion, notionDocId); - const titles = Object.values(notionPage?.block ?? {}) + const titles = Object.values(notionPage?.block ?? {}) .map((block) => { const title = block?.value?.properties?.title; if (title && title[0] && title[0][0]) {