Fix: tag parser id (#14724)

### What problem does this PR solve?
tag parser id
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
buua436
2026-05-09 14:29:09 +08:00
committed by GitHub
parent ee0de58204
commit de2abe9ed8
2 changed files with 3 additions and 2 deletions

View File

@ -35,7 +35,7 @@ function Radio({
const isChecked = isControlled ? checked : groupContext?.value === value;
const mergedDisabled = disabled || groupContext?.disabled;
const handleClick = () => {
const handleChange = () => {
if (mergedDisabled) return;
// if (!isControlled) {
@ -62,7 +62,7 @@ function Radio({
type="radio"
value={value}
checked={isChecked}
onClick={handleClick}
onChange={handleChange}
disabled={mergedDisabled}
className={cn('peer absolute size-[1px] opacity-0', className)}
{...props}

View File

@ -121,6 +121,7 @@ const mapDocumentToLegacy = (doc: Record<string, any>) => ({
...doc,
chunk_num: doc.chunk_num ?? doc.chunk_count,
kb_id: doc.kb_id || doc.dataset_id,
parser_id: doc.parser_id || doc.chunk_method,
});
const mapChunkPayloadToRest = (payload: Record<string, any>) => ({