Skip to content

Commit

Permalink
fixed citation mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
ayyubibrahimi committed Sep 30, 2023
1 parent a0059e3 commit 9905aac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/web/components/NewQuery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,8 @@ export default function NewQuery() {
</button>
</form>

{/* Display the YouTube embeds*/}
<div className="mt-10">
{card?.citations.map((citation, index) => (
{card?.citations?.map((citation, index) => (
<div key={index}>
<p>{citation.source_title}</p>
{citation.source_url.includes("youtube.com") && <YouTubeEmbed url={citation.source_url} />}
Expand Down

0 comments on commit 9905aac

Please sign in to comment.