From 3b4ae994f4ab8f59e9764d7ef67ca9649107c512 Mon Sep 17 00:00:00 2001 From: Siarhei Iukou Date: Tue, 18 Jun 2024 06:10:34 +0300 Subject: [PATCH] EPMRPP-91329 || Launch merge functionality is not working as the start/end time values are incorrect --- app/src/pages/inside/launchesPage/launchesPage.jsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/pages/inside/launchesPage/launchesPage.jsx b/app/src/pages/inside/launchesPage/launchesPage.jsx index 3354971633..68a1f45397 100644 --- a/app/src/pages/inside/launchesPage/launchesPage.jsx +++ b/app/src/pages/inside/launchesPage/launchesPage.jsx @@ -606,7 +606,12 @@ export class LaunchesPage extends Component { }; mergeLaunches = () => { - this.props.mergeLaunchesAction(this.props.selectedLaunches, { + const launches = this.props.selectedLaunches.map((launch) => ({ + ...launch, + startTime: new Date(launch.startTime).getTime(), + endTime: new Date(launch.endTime).getTime(), + })); + this.props.mergeLaunchesAction(launches, { fetchFunc: this.unselectAndResetPage, }); };