From f584007a56517b635e01438cfda07842fd1f1d9e Mon Sep 17 00:00:00 2001 From: Sachin Chaurasiya Date: Thu, 29 Feb 2024 21:28:59 +0530 Subject: [PATCH] fix: type errors for pr #15297 --- .../IngestionWorkflowForm/IngestionWorkflowForm.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Settings/Services/Ingestion/IngestionWorkflowForm/IngestionWorkflowForm.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Settings/Services/Ingestion/IngestionWorkflowForm/IngestionWorkflowForm.tsx index a6bf8f8f298f..3f8eda9595bc 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Settings/Services/Ingestion/IngestionWorkflowForm/IngestionWorkflowForm.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Settings/Services/Ingestion/IngestionWorkflowForm/IngestionWorkflowForm.tsx @@ -24,7 +24,10 @@ import { INGESTION_WORKFLOW_UI_SCHEMA, } from '../../../../../constants/Services.constant'; import { FormSubmitType } from '../../../../../enums/form.enum'; -import { PipelineType } from '../../../../../generated/api/services/ingestionPipelines/createIngestionPipeline'; +import { + DbtConfigType, + PipelineType, +} from '../../../../../generated/api/services/ingestionPipelines/createIngestionPipeline'; import { IngestionWorkflowData, IngestionWorkflowFormProps, @@ -108,6 +111,8 @@ const IngestionWorkflowForm: FC = ({ ...formData, dbtConfigSource: { ...omitBy(formData.dbtConfigSource ?? {}, isUndefined), + dbtConfigType: formData.dbtConfigSource + ?.dbtConfigType as DbtConfigType, }, }; } @@ -140,6 +145,8 @@ const IngestionWorkflowForm: FC = ({ ...formData, dbtConfigSource: { ...omitBy(formData.dbtConfigSource ?? {}, isUndefined), + dbtConfigType: formData.dbtConfigSource + ?.dbtConfigType as DbtConfigType, }, }; }