Commit 1cef4873 authored by Jun Siang Cheah's avatar Jun Siang Cheah
Browse files

fix: show both message contents and error message

parent 561778d0
......@@ -453,7 +453,9 @@
<div class="w-full">
{#if message.content === '' && !message.error}
<Skeleton />
{:else if !message.error}
{:else if message.content && message.error !== true}
<!-- always show message contents even if there's an error -->
<!-- unless message.error === true which is legacy error handling, where the error message is stored in message.content -->
{#each tokens as token, tokenIdx}
{#if token.type === 'code'}
<CodeBlock
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment