Explorar el Código

fix: display total items on chunk list page #900 (#1584)

### What problem does this PR solve?
fix: display total items on chunk list page #900

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.9.0
balibabu hace 1 año
padre
commit
478cd006d6
No account linked to committer's email address

+ 6
- 0
web/src/pages/add-knowledge/components/knowledge-chunk/index.tsx Ver fichero

@@ -203,6 +203,12 @@ const Chunk = () => {
current={pagination.current}
size={'small'}
total={total}
showTotal={(total) => (
<Space>
{t('total', { keyPrefix: 'common' })}
{total}
</Space>
)}
/>
</div>
</Flex>

+ 2
- 0
web/src/pages/add-knowledge/components/knowledge-chunk/model.ts Ver fichero

@@ -29,6 +29,7 @@ const model: DvaModel<ChunkModelState> = {
chunkInfo: {},
documentInfo: {} as IKnowledgeFile,
pagination: {
total: 0,
current: 1,
pageSize: 10,
},
@@ -68,6 +69,7 @@ const model: DvaModel<ChunkModelState> = {
pagination: {
current: 1,
pageSize: 10,
total: 0,
},
searchString: '',
available: undefined,

Cargando…
Cancelar
Guardar