Skip to content

Commit

Permalink
Add sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
sggerard committed Dec 27, 2024
1 parent aa3f958 commit 49c8381
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/core-web/src/components/admin/MinespaceUserList.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const propTypes = {
const defaultProps = {
minespaceUsers: [],
minespaceUserMines: [],
handleDelete: () => {},
handleDelete: () => { },
};

const columns = [
Expand Down Expand Up @@ -75,7 +75,7 @@ const lookupMineName = (mine_guids, mines) =>
mine_guid,
mine_name: mine_record ? `${mine_record.mine_name}-${mine_record.mine_no}` : "",
};
});
}).sort((a, b) => a.mine_name.localeCompare(b.mine_name));

const transformRowData = (minespaceUsers, mines, deleteFunc, handleOpenModal) =>
minespaceUsers.map((user) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const UpdateMinespaceUser: FC<UpdateMinespaceUserProps> = ({
};

const handleChange = () => {
setSearching(false)
fetchMineNameList();
};

Expand Down

0 comments on commit 49c8381

Please sign in to comment.