TP-48671 | minor change
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user