From 18ba322dbe2b317f61cadf04fbb94b83ba67106e Mon Sep 17 00:00:00 2001 From: Tan Nhu Date: Thu, 7 Mar 2024 22:39:23 +0000 Subject: [PATCH] Fix Commits order (#1110) --- web/src/components/CommitsView/CommitsView.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/CommitsView/CommitsView.tsx b/web/src/components/CommitsView/CommitsView.tsx index 10ff021ee..33ac43ed5 100644 --- a/web/src/components/CommitsView/CommitsView.tsx +++ b/web/src/components/CommitsView/CommitsView.tsx @@ -30,7 +30,7 @@ import { import { Icon } from '@harnessio/icons' import { Color, FontVariation } from '@harnessio/design-system' import type { CellProps, Column } from 'react-table' -import { defaultTo, orderBy } from 'lodash-es' +import { defaultTo } from 'lodash-es' import { Link, useHistory } from 'react-router-dom' import { useStrings } from 'framework/strings' import { useAppContext } from 'AppContext' @@ -264,7 +264,7 @@ export function CommitsView({ className={css.table} hideHeaders columns={columns} - data={orderBy(commitsByDate || [], ['committer.when'], ['desc'])} + data={commitsByDate || []} getRowClassName={() => css.row} />