Skip to content

Commit

Permalink
EPMRPP-96556 || New user shown invalid in recipient field (#4085)
Browse files Browse the repository at this point in the history
  • Loading branch information
iso9000t authored Nov 6, 2024
1 parent 4dbfaf7 commit b951760
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ export const getLaunchModeConfig = ({
}) => {
const colors = {};
const columns = [];
// EPMRPP-96393 (GitHub #2381): Changed sorting from -item.number to startTime-based sorting
// for consistency across all chart widgets. This ensures chronological ordering
// based on actual launch times rather than launch names/numbers.
const sortedResult = content.sort((a, b) => {
const startTimeA = new Date(a.startTime);
const startTimeB = new Date(b.startTime);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ import { RadioGroup } from 'componentLibrary/radioGroup';
import { EMAIL } from 'common/constants/pluginNames';
import { FieldTextFlex } from 'componentLibrary/fieldTextFlex';
import { ruleField } from 'pages/inside/projectSettingsPageContainer/content/notifications/propTypes';
import { fetchProjectAction } from 'controllers/project/actionCreators';
import { projectIdSelector } from 'controllers/pages';
import { capitalizeWord } from '../util';
import { RecipientsContainer } from './recipientsContainer';
import { LaunchNamesContainer } from './launchNamesContainer';
Expand Down Expand Up @@ -213,12 +215,14 @@ const AddEditNotificationModal = ({
}) => {
const { formatMessage } = useIntl();
const dispatch = useDispatch();
const projectId = useSelector(projectIdSelector);
const [isEditorShown, setShowEditor] = React.useState(data.notification.attributes.length > 0);
const attributesValue =
useSelector((state) => attributesValueSelector(state, ATTRIBUTES_FIELD_KEY)) ?? [];

useEffect(() => {
initialize(data.notification);
dispatch(fetchProjectAction(projectId, false));
}, []);

const caseOptions = [
Expand Down

0 comments on commit b951760

Please sign in to comment.