From 0688c2fa3965c09ae6c370f40c5fc5fbbea4ddf7 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Sun, 2 Aug 2026 01:17:05 +0000 Subject: [PATCH] fix: getComponents .map is not a function TypeError --- src/content/github/common/fetchers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/github/common/fetchers.ts b/src/content/github/common/fetchers.ts index 8807c29..6f5305f 100644 --- a/src/content/github/common/fetchers.ts +++ b/src/content/github/common/fetchers.ts @@ -35,7 +35,7 @@ export async function getComponents(metadata: FileMetadata): Promise { referrer: window.location.href, }); - const components = response.ok ? response.data : []; + const components = response.ok ? response.data.results : []; return components.map((c: any) => c.component_id); }