Skip to content

Commit c096332

Browse files
committed
Merge branch 'main' into update/extra-credit
2 parents 0446534 + 555584e commit c096332

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

apps/site/src/app/admin/scores/Scores.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,12 @@ function Scores() {
115115
[applicantList],
116116
);
117117

118-
const sorted = sortApplicantsByNormalizedScore(filteredApplicants);
118+
const sorted = sortApplicantsByNormalizedScore(filteredApplicants).map(
119+
(item, index) => ({
120+
...item,
121+
rowIndex: index + 1,
122+
}),
123+
);
119124

120125
const handleClick = () => {
121126
axios
@@ -162,6 +167,12 @@ function Scores() {
162167
<Table
163168
loading={loading}
164169
columnDefinitions={[
170+
{
171+
id: "index",
172+
header: "#",
173+
cell: (item) => item.rowIndex,
174+
width: 60,
175+
},
165176
{
166177
id: "name",
167178
header: "Name",

0 commit comments

Comments
 (0)