Skip to content

Commit f845af9

Browse files
committed
Fix API endpoint in getScoreLeaderboard and disable pagination page size selector in OverallLeaderboard
1 parent 4859269 commit f845af9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/commons/sagas/RequestsSaga.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,15 +1332,15 @@ export const dispatchContestXp = async (
13321332
};
13331333

13341334
/**
1335-
* GET /courses/{courseId}/admin/assessments/{assessmentId}/{visibleEntries}/scoreLeaderboard
1335+
* GET /courses/{courseId}/assessments/{assessmentId}/{visibleEntries}/scoreLeaderboard
13361336
*/
13371337
export const getScoreLeaderboard = async (
13381338
assessmentId: number,
13391339
visibleEntries: number | undefined,
13401340
tokens: Tokens
13411341
): Promise<ContestEntry[] | null> => {
13421342
const resp = await request(
1343-
`${courseId()}/admin/assessments/${assessmentId}/${visibleEntries}/scoreLeaderboard`,
1343+
`${courseId()}/assessments/${assessmentId}/${visibleEntries}/scoreLeaderboard`,
13441344
'GET',
13451345
{
13461346
...tokens

src/pages/leaderboard/subcomponents/OverallLeaderboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ const OverallLeaderboard: React.FC = () => {
169169
<div className="ag-theme-alpine">
170170
<AgGridReact
171171
pagination={true}
172-
paginationPageSizeSelector={[25, 50, 100]}
172+
paginationPageSizeSelector={false}
173173
columnDefs={columnDefs}
174174
rowModelType="infinite"
175175
paginationPageSize={pageSize}

0 commit comments

Comments
 (0)