diff --git a/dashboard/src/modules/components/TableComponent/index.jsx b/dashboard/src/modules/components/TableComponent/index.jsx index 0d2721d0fc..f24e537a46 100644 --- a/dashboard/src/modules/components/TableComponent/index.jsx +++ b/dashboard/src/modules/components/TableComponent/index.jsx @@ -82,9 +82,8 @@ const TableWithFavorite = () => { !!favoriteRepoNames.find((element) => element.name === repo.name); const getSortableRowValues = (data) => { - const { controller, name } = data; const creationDate = data.metadata[DATASET_CREATED]; - return [controller, name, creationDate]; + return [data.name, creationDate, isRepoFavorited(data)]; }; if (activeSortIndex !== null) { selectedArray.sort((a, b) => { @@ -101,7 +100,7 @@ const TableWithFavorite = () => { }); } const getSortParams = (columnIndex) => ({ - isFavorites: columnIndex === 3, + isFavorites: columnIndex === 2, sortBy: { index: activeSortIndex, direction: activeSortDirection,