From 501ed16967f5fda001bb8355d06c46bd3fee1f5a Mon Sep 17 00:00:00 2001 From: gakshita Date: Fri, 11 Oct 2024 13:07:47 +0530 Subject: [PATCH] fix: ordering --- web/ee/components/cycles/active-cycle/formatter.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/ee/components/cycles/active-cycle/formatter.ts b/web/ee/components/cycles/active-cycle/formatter.ts index b8621b2ce8..9007c8501d 100644 --- a/web/ee/components/cycles/active-cycle/formatter.ts +++ b/web/ee/components/cycles/active-cycle/formatter.ts @@ -35,7 +35,7 @@ const formatV1Data = (isTypeIssue: boolean, cycle: ICycle, isBurnDown: boolean, }; }); - progress = uniqBy(progress, "date"); + progress = uniqBy(orderBy(progress, "date"), "date"); return progress; }; @@ -70,7 +70,7 @@ const formatV2Data = (isTypeIssue: boolean, cycle: ICycle, isBurnDown: boolean, actual: dataDate! <= today ? (isBurnDown ? Math.abs(pending) : completed) : undefined, }; }); - progress = uniqBy(progress, "date"); + progress = uniqBy(orderBy(progress, "date"), "date"); return progress; };