Skip to content

Commit 4046bff

Browse files
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)
1 parent 03f9be7 commit 4046bff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web/src/components/chunk-method-dialog/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export function ChunkMethodDialog({
209209
// Unset children delimiter if this option is not enabled
210210
children_delimiter: data.parser_config.enable_children
211211
? data.parser_config.children_delimiter
212-
: null,
212+
: '',
213213
pages: data.parser_config?.pages?.map((x: any) => [x.from, x.to]) ?? [],
214214
},
215215
};

web/src/pages/dataset/dataset-setting/saving-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function SavingButton() {
7272
// Unset children delimiter if this option is not enabled
7373
children_delimiter: values.parser_config.enable_children
7474
? values.parser_config.children_delimiter
75-
: null,
75+
: '',
7676
},
7777
});
7878
})();

0 commit comments

Comments
 (0)