Skip to content

Commit

Permalink
changed source_url syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ayyubibrahimi committed Sep 30, 2023
1 parent 9905aac commit 32ec08b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/web/components/NewQuery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ export default function NewQuery() {
{card?.citations?.map((citation, index) => (
<div key={index}>
<p>{citation.source_title}</p>
{citation.source_url.includes("youtube.com") && <YouTubeEmbed url={citation.source_url} />}
{citation.source_url && citation.source_url.includes("youtube.com") &&
<YouTubeEmbed url={citation.source_url} />}
</div>
))}
</div>
Expand Down

0 comments on commit 32ec08b

Please sign in to comment.