diff --git a/openmetadata-ui/src/main/resources/ui/src/components/Settings/Services/Ingestion/PipelineActions.component.tsx b/openmetadata-ui/src/main/resources/ui/src/components/Settings/Services/Ingestion/PipelineActions.component.tsx index e998eb08ce1..741d1ac72bd 100644 --- a/openmetadata-ui/src/main/resources/ui/src/components/Settings/Services/Ingestion/PipelineActions.component.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/components/Settings/Services/Ingestion/PipelineActions.component.tsx @@ -12,7 +12,6 @@ */ import { CheckOutlined } from '@ant-design/icons'; import { Button, Divider, Space } from 'antd'; -import { AxiosError } from 'axios'; import React, { useState } from 'react'; import { useTranslation } from 'react-i18next'; import { Link, useHistory } from 'react-router-dom'; @@ -22,7 +21,6 @@ import { getEditIngestionPath, getLogsViewerPath, } from '../../../../utils/RouterUtils'; -import { showErrorToast, showSuccessToast } from '../../../../utils/ToastUtils'; import Loader from '../../../common/Loader/Loader'; import KillIngestionModal from '../../../Modals/KillIngestionPipelineModal/KillIngestionPipelineModal'; import { PipelineActionsProps } from './PipelineActions.interface'; @@ -59,16 +57,11 @@ function PipelineActions({ await triggerIngestion(id, displayName); setCurrTriggerId({ id, state: 'success' }); - showSuccessToast(t('message.pipeline-trigger-success-message')); setTimeout(() => { setCurrTriggerId({ id: '', state: '' }); }, 1500); } catch (error) { setCurrTriggerId({ id: '', state: '' }); - showErrorToast( - error as AxiosError, - t('message.pipeline-trigger-failed-message') - ); } }; diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/ServiceDetailsPage/ServiceDetailsPage.tsx b/openmetadata-ui/src/main/resources/ui/src/pages/ServiceDetailsPage/ServiceDetailsPage.tsx index 88bd9bd928a..42a2cc84b4c 100644 --- a/openmetadata-ui/src/main/resources/ui/src/pages/ServiceDetailsPage/ServiceDetailsPage.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/pages/ServiceDetailsPage/ServiceDetailsPage.tsx @@ -321,6 +321,7 @@ const ServiceDetailsPage: FunctionComponent = () => { async (id: string, displayName: string) => { try { const data = await triggerIngestionPipelineById(id); + showSuccessToast(t('message.pipeline-trigger-success-message')); updateCurrentSelectedIngestion(id, data, 'pipelineStatuses'); } catch (err) {