diff --git a/datahub-web-react/src/app/entity/dataset/DatasetEntity.tsx b/datahub-web-react/src/app/entity/dataset/DatasetEntity.tsx index 63aa50ebbd4db7..ac545c69cb3aab 100644 --- a/datahub-web-react/src/app/entity/dataset/DatasetEntity.tsx +++ b/datahub-web-react/src/app/entity/dataset/DatasetEntity.tsx @@ -34,7 +34,7 @@ import { getDataProduct } from '../shared/utils'; import AccessManagement from '../shared/tabs/Dataset/AccessManagement/AccessManagement'; import { matchedFieldPathsRenderer } from '../../search/matches/matchedFieldPathsRenderer'; import { getLastUpdatedMs } from './shared/utils'; -import { IncidentTab } from '../../entity/shared/tabs/Incident/IncidentTab'; +import { IncidentTab } from '../shared/tabs/Incident/IncidentTab'; const SUBTYPES = { VIEW: 'view', diff --git a/datahub-web-react/src/app/entity/shared/tabs/Incident/IncidentTab.tsx b/datahub-web-react/src/app/entity/shared/tabs/Incident/IncidentTab.tsx index 3ae4c804547d82..47627068ad4ce5 100644 --- a/datahub-web-react/src/app/entity/shared/tabs/Incident/IncidentTab.tsx +++ b/datahub-web-react/src/app/entity/shared/tabs/Incident/IncidentTab.tsx @@ -118,7 +118,7 @@ export const IncidentTab = () => { emptyText: ( diff --git a/datahub-web-react/src/app/entity/shared/tabs/Incident/components/AddIncidentModal.tsx b/datahub-web-react/src/app/entity/shared/tabs/Incident/components/AddIncidentModal.tsx index 42a87a57ab6bfe..bb83f0f9ddaf76 100644 --- a/datahub-web-react/src/app/entity/shared/tabs/Incident/components/AddIncidentModal.tsx +++ b/datahub-web-react/src/app/entity/shared/tabs/Incident/components/AddIncidentModal.tsx @@ -1,8 +1,9 @@ import React, { useState } from 'react'; import { message, Modal, Button, Form, Input, Typography, Select } from 'antd'; import { useApolloClient } from '@apollo/client'; +import TextArea from 'antd/lib/input/TextArea'; import analytics, { EventType, EntityActionType } from '../../../../../analytics'; -import { useEntityData, useRefetch } from '../../../EntityContext'; +import { useEntityData } from '../../../EntityContext'; import { EntityType, IncidentSourceType, IncidentState, IncidentType } from '../../../../../../types.generated'; import { INCIDENT_DISPLAY_TYPES, PAGE_SIZE, addActiveIncidentToCache } from '../incidentUtils'; import { useRaiseIncidentMutation } from '../../../../../../graphql/mutations.generated'; @@ -29,6 +30,7 @@ export const AddIncidentModal = ({ visible, onClose, refetch }: AddIncidentProps const handleClose = () => { form.resetFields(); setIsOtherTypeSelected(false); + setSelectedIncidentType(IncidentType.Operational); onClose?.(); }; @@ -147,7 +149,7 @@ export const AddIncidentModal = ({ visible, onClose, refetch }: AddIncidentProps }, ]} > - + )} - + - +