TP-48671 | minor change

This commit is contained in:
AyushRanjan
2023-11-22 11:37:23 +05:30
parent 4dfea21d8a
commit c2a8c8b02e

View File

@@ -351,9 +351,6 @@ const Incident: FC = () => {
selectedOption: SelectPickerOptionProps | SelectPickerOptionProps[],
updateType: number,
): void => {
dispatch({ type: actionTypes.SET_IS_STATUS_PICKER_OPEN, payload: false });
dispatch({ type: actionTypes.SET_IS_SEVERITY_PICKER_OPEN, payload: false });
dispatch({ type: actionTypes.SET_IS_TEAM_PICKER_OPEN, payload: false });
const currentValue =
updateType === SeverityType
? state.severity?.value
@@ -365,6 +362,12 @@ const Incident: FC = () => {
? selectedOption[0].value
: selectedOption.value;
if (currentState !== selectedvalue) {
dispatch({ type: actionTypes.SET_IS_STATUS_PICKER_OPEN, payload: false });
dispatch({
type: actionTypes.SET_IS_SEVERITY_PICKER_OPEN,
payload: false,
});
dispatch({ type: actionTypes.SET_IS_TEAM_PICKER_OPEN, payload: false });
if (
updateType === StatusType &&
(selectedvalue === RESOLVE_STATUS || selectedvalue === DUPLICATE_STATUS)