diff --git a/web/src/pages/RepositoryBranches/RepositoryBranchesContent/BranchesContent/BranchesContent.tsx b/web/src/pages/RepositoryBranches/RepositoryBranchesContent/BranchesContent/BranchesContent.tsx index e2e41b1af..a47ce602c 100644 --- a/web/src/pages/RepositoryBranches/RepositoryBranchesContent/BranchesContent/BranchesContent.tsx +++ b/web/src/pages/RepositoryBranches/RepositoryBranchesContent/BranchesContent/BranchesContent.tsx @@ -4,7 +4,6 @@ import type { CellProps, Column } from 'react-table' import { Link, useHistory } from 'react-router-dom' import cx from 'classnames' import Keywords from 'react-keywords' -import { orderBy } from 'lodash-es' import { useMutate } from 'restful-react' import { String, useStrings } from 'framework/strings' import { useAppContext } from 'AppContext' @@ -136,7 +135,7 @@ export function BranchesContent({ repoMetadata, searchTerm = '', branches, onDel } } ], - [getString, repoMetadata.defaultBranch, repoMetadata.path, routes, searchTerm, history] + [getString, repoMetadata.defaultBranch, repoMetadata.path, routes, searchTerm, history, onDeleteSuccess] ) return ( @@ -144,7 +143,7 @@ export function BranchesContent({ repoMetadata, searchTerm = '', branches, onDel className={css.table} columns={columns} - data={orderBy(branches || [], [searchTerm ? '' : 'commit.author.when'], ['desc'])} + data={branches || []} getRowClassName={row => cx(css.row, (row.index + 1) % 2 ? css.odd : '')} /> diff --git a/web/src/pages/RepositoryBranches/RepositoryBranchesContent/RepositoryBranchesContent.tsx b/web/src/pages/RepositoryBranches/RepositoryBranchesContent/RepositoryBranchesContent.tsx index 034d90445..288cdfc8c 100644 --- a/web/src/pages/RepositoryBranches/RepositoryBranchesContent/RepositoryBranchesContent.tsx +++ b/web/src/pages/RepositoryBranches/RepositoryBranchesContent/RepositoryBranchesContent.tsx @@ -26,6 +26,7 @@ export function RepositoryBranchesContent({ repoMetadata }: Pick