mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-01 01:25:32 +08:00
fix: unable to save ingestion pipeline config without modifying children delimiter (#11991)
…ildren delimiter ### What problem does this PR solve? Fix the issue of unable to save **Files > Ingestion Pipeline (Modal)** config without modifying children delimiter ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -209,7 +209,7 @@ export function ChunkMethodDialog({
|
|||||||
// Unset children delimiter if this option is not enabled
|
// Unset children delimiter if this option is not enabled
|
||||||
children_delimiter: data.parser_config.enable_children
|
children_delimiter: data.parser_config.enable_children
|
||||||
? data.parser_config.children_delimiter
|
? data.parser_config.children_delimiter
|
||||||
: null,
|
: '',
|
||||||
pages: data.parser_config?.pages?.map((x: any) => [x.from, x.to]) ?? [],
|
pages: data.parser_config?.pages?.map((x: any) => [x.from, x.to]) ?? [],
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@ -72,7 +72,7 @@ export function SavingButton() {
|
|||||||
// Unset children delimiter if this option is not enabled
|
// Unset children delimiter if this option is not enabled
|
||||||
children_delimiter: values.parser_config.enable_children
|
children_delimiter: values.parser_config.enable_children
|
||||||
? values.parser_config.children_delimiter
|
? values.parser_config.children_delimiter
|
||||||
: null,
|
: '',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
|
|||||||
Reference in New Issue
Block a user