From 32ec08b529c2cdfd505363f86e2f1fb221b27322 Mon Sep 17 00:00:00 2001 From: Ayyub I Date: Sat, 30 Sep 2023 11:15:59 -0500 Subject: [PATCH] changed source_url syntax --- packages/web/components/NewQuery.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/web/components/NewQuery.tsx b/packages/web/components/NewQuery.tsx index 0ba91a07..00c7463e 100644 --- a/packages/web/components/NewQuery.tsx +++ b/packages/web/components/NewQuery.tsx @@ -158,7 +158,8 @@ export default function NewQuery() { {card?.citations?.map((citation, index) => (

{citation.source_title}

- {citation.source_url.includes("youtube.com") && } + {citation.source_url && citation.source_url.includes("youtube.com") && + }
))}