fix: source citations user message display issue
This commit is contained in:
1 parent
4d4ed743ae
commit
3c8f1cf8e5
2 files changed
+43
-38
No files matched your search
@@ -75,12 +75,11 @@
|
||||
`<sup class="footnote-ref footnote-ref-text">${token.escapedText}</sup>`
|
||||
) || ''}
|
||||
{:else if token.type === 'citation'}
|
||||
<SourceToken {id} {token} {sourceIds} onClick={onSourceClick} />
|
||||
<!-- {#if token.ids && token.ids.length > 0}
|
||||
{#each token.ids as sourceId}
|
||||
<Source id={sourceId - 1} title={sourceIds[sourceId - 1]} onClick={onSourceClick} />
|
||||
{/each}
|
||||
{/if} -->
|
||||
{#if (sourceIds ?? []).length > 0}
|
||||
<SourceToken {id} {token} {sourceIds} onClick={onSourceClick} />
|
||||
{:else}
|
||||
<TextToken {token} {done} />
|
||||
{/if}
|
||||
{:else if token.type === 'text'}
|
||||
<TextToken {token} {done} />
|
||||
{/if}
|
||||
|
||||
Reference in new issue
Block a user