fix: malformed dynamic translation key chunk.docType.${chunkType} (#12329)

### What problem does this PR solve?

Back-end may returns empty array on `"doc_type_kwd"` property which
causes translation key malformed.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
Jimmy Ben Klieve
2025-12-30 19:33:20 +08:00
committed by GitHub
parent 68be3b9a3d
commit 4705d07e11
3 changed files with 27 additions and 19 deletions

View File

@ -116,7 +116,7 @@ export interface ITenantInfo {
tts_id: string;
}
export type ChunkDocType = 'image' | 'table';
export type ChunkDocType = 'image' | 'table' | 'text';
export interface IChunk {
available_int: number; // Whether to enable, 0: not enabled, 1: enabled