From 3f61b86c2bbb4dd121a8f1aa24036f5d8bd3d742 Mon Sep 17 00:00:00 2001 From: Rami Maalouf Date: Sun, 3 Nov 2024 10:36:15 -0700 Subject: [PATCH] fix type to fix build --- src/contents/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contents/index.ts b/src/contents/index.ts index 11c55fa..a1af0f5 100644 --- a/src/contents/index.ts +++ b/src/contents/index.ts @@ -105,7 +105,7 @@ const newVideoLoaded = async () => { // section 2: add the snips to the video await updateVideoSnips(); - const { transcript = "", title = "" } = await getVideoDetails(videoId); + const { transcript = [], title = "" } = await getVideoDetails(videoId); console.log("transcript", transcript); console.log("title", title); // // vidTranscript = transcript?.map((d) => d.text).join(" ") || "";