mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-08 08:07:21 +08:00
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:
@ -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}
|
||||
|
||||
@ -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>) => ({
|
||||
|
||||
Reference in New Issue
Block a user