fix(ingest): always send correct data for advanced section (#11960)

This commit is contained in:
Aseem Bansal 2024-11-27 03:19:14 +05:30 committed by GitHub
parent 1ba1b2c146
commit fbc98518b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -193,7 +193,9 @@ export const IngestionSourceList = () => {
const formatExtraArgs = (extraArgs): StringMapEntryInput[] => {
if (extraArgs === null || extraArgs === undefined) return [];
return extraArgs.map((entry) => ({ key: entry.key, value: entry.value }));
return extraArgs
.filter((entry) => entry.value !== null && entry.value !== undefined && entry.value !== '')
.map((entry) => ({ key: entry.key, value: entry.value }));
};
const createOrUpdateIngestionSource = (