Skip to content

Commit

Permalink
fix: broken auto link (#2580)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan authored Apr 2, 2024
1 parent 89653ed commit 9797e5b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion web/screens/Chat/ErrorMessage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ const ErrorMessage = ({ message }: { message: ThreadMessage }) => {
</span>
)
default:
return <AutoLink text={message.content[0]?.text?.value} />
return (
<>
{message.content[0]?.text?.value && (
<AutoLink text={message.content[0].text.value} />
)}
</>
)
}
}

Expand Down

0 comments on commit 9797e5b

Please sign in to comment.