fix: type errors for pr #15297 (#15411)

This commit is contained in:
Sachin Chaurasiya 2024-03-01 00:14:47 +05:30 committed by GitHub
parent 0bef4aea02
commit b881a596ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,7 +24,10 @@ import {
INGESTION_WORKFLOW_UI_SCHEMA, INGESTION_WORKFLOW_UI_SCHEMA,
} from '../../../../../constants/Services.constant'; } from '../../../../../constants/Services.constant';
import { FormSubmitType } from '../../../../../enums/form.enum'; import { FormSubmitType } from '../../../../../enums/form.enum';
import { PipelineType } from '../../../../../generated/api/services/ingestionPipelines/createIngestionPipeline'; import {
DbtConfigType,
PipelineType,
} from '../../../../../generated/api/services/ingestionPipelines/createIngestionPipeline';
import { import {
IngestionWorkflowData, IngestionWorkflowData,
IngestionWorkflowFormProps, IngestionWorkflowFormProps,
@ -108,6 +111,8 @@ const IngestionWorkflowForm: FC<IngestionWorkflowFormProps> = ({
...formData, ...formData,
dbtConfigSource: { dbtConfigSource: {
...omitBy(formData.dbtConfigSource ?? {}, isUndefined), ...omitBy(formData.dbtConfigSource ?? {}, isUndefined),
dbtConfigType: formData.dbtConfigSource
?.dbtConfigType as DbtConfigType,
}, },
}; };
} }
@ -140,6 +145,8 @@ const IngestionWorkflowForm: FC<IngestionWorkflowFormProps> = ({
...formData, ...formData,
dbtConfigSource: { dbtConfigSource: {
...omitBy(formData.dbtConfigSource ?? {}, isUndefined), ...omitBy(formData.dbtConfigSource ?? {}, isUndefined),
dbtConfigType: formData.dbtConfigSource
?.dbtConfigType as DbtConfigType,
}, },
}; };
} }