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:
Jimmy Ben Klieve
2025-12-17 15:37:28 +08:00
committed by GitHub
parent 03f9be7cbb
commit 4046bffaf1
2 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ export function ChunkMethodDialog({
// Unset children delimiter if this option is not enabled
children_delimiter: data.parser_config.enable_children
? data.parser_config.children_delimiter
: null,
: '',
pages: data.parser_config?.pages?.map((x: any) => [x.from, x.to]) ?? [],
},
};

View File

@ -72,7 +72,7 @@ export function SavingButton() {
// Unset children delimiter if this option is not enabled
children_delimiter: values.parser_config.enable_children
? values.parser_config.children_delimiter
: null,
: '',
},
});
})();