mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-30 22:10:10 +00:00
feat(web): 🎨 Unified color theme, AntV light/dark theme switching, Antd first-screen style loading. (#1020)
Co-authored-by: 黄振洪 <hzh01509324@alibaba-inc.com> Co-authored-by: Aralhi <xiaoping0501@gmail.com>
This commit is contained in:
@@ -82,7 +82,7 @@ export default function Segmentation(props: IProps) {
|
||||
}
|
||||
const strategy = strategies.filter((item) => item.strategy === name)[0];
|
||||
const newParam: any = {
|
||||
chunk_strategy: item.chunk_parameters.chunk_strategy,
|
||||
chunk_strategy: item?.chunk_parameters?.chunk_strategy,
|
||||
};
|
||||
if (strategy && strategy.parameters) {
|
||||
// remove unused parameter, otherwise api will failed.
|
||||
|
Reference in New Issue
Block a user