From 2df2a9a78463939dd52fb329a0912dc1186d2a4d Mon Sep 17 00:00:00 2001 From: Ilya Hancharyk Date: Fri, 10 Nov 2023 14:40:24 +0300 Subject: [PATCH] EPMRPP-81919 || Add defect type modal fix --- .../content/defectTypes/defectTypes.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/pages/inside/projectSettingsPageContainer/content/defectTypes/defectTypes.jsx b/app/src/pages/inside/projectSettingsPageContainer/content/defectTypes/defectTypes.jsx index 98a0b5aa9d..85f1a2a1fd 100644 --- a/app/src/pages/inside/projectSettingsPageContainer/content/defectTypes/defectTypes.jsx +++ b/app/src/pages/inside/projectSettingsPageContainer/content/defectTypes/defectTypes.jsx @@ -34,7 +34,7 @@ import { SystemMessage } from 'componentLibrary/systemMessage'; import { COMMON_LOCALE_KEYS } from 'common/constants/localization'; import { PROJECT_SETTINGS_DEFECT_TYPES_EVENTS } from 'analyticsEvents/projectSettingsPageEvents'; import { docsReferences, createExternalLink } from 'common/utils'; -import { Divider, TabDescription, MODAL_ACTION_TYPE_EDIT, FormattedDescription } from '../elements'; +import { Divider, TabDescription, MODAL_ACTION_TYPE_ADD, FormattedDescription } from '../elements'; import { MAX_DEFECT_TYPES_COUNT, WARNING_DEFECT_TYPES_COUNT } from './constants'; import { SettingsPageContent } from '../settingsPageContent'; import { DefectTypeRow } from './defectTypeRow'; @@ -89,7 +89,7 @@ export const DefectTypes = ({ setHeaderTitleNode }) => { id: 'addEditDefectTypeModal', data: { onSave: addDefect, - actionType: MODAL_ACTION_TYPE_EDIT, + actionType: MODAL_ACTION_TYPE_ADD, defectType: { color: defectGroup.color, typeRef: defectGroup.typeRef }, defectTypes, },