mirror of
https://github.com/open-webui/open-webui
synced 2025-06-23 02:16:52 +00:00
Fix: page number edge case
Fix when document?.metadata?.page == 0 (page 1), the page number will not be displayed
This commit is contained in:
parent
8a2723a7a6
commit
190400d1e8
@ -109,7 +109,7 @@
|
|||||||
>
|
>
|
||||||
{decodeString(document?.metadata?.name ?? document.source.name)}
|
{decodeString(document?.metadata?.name ?? document.source.name)}
|
||||||
</a>
|
</a>
|
||||||
{#if document?.metadata?.page}
|
{#if Number.isInteger(document?.metadata?.page)}
|
||||||
<span class="text-xs text-gray-500 dark:text-gray-400">
|
<span class="text-xs text-gray-500 dark:text-gray-400">
|
||||||
({$i18n.t('page')}
|
({$i18n.t('page')}
|
||||||
{document.metadata.page + 1})
|
{document.metadata.page + 1})
|
||||||
|
Loading…
Reference in New Issue
Block a user