diff options
| author | Wolfboy248 <121288977+Wolfboy248@users.noreply.github.com> | 2024-12-10 07:16:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-10 09:16:37 +0300 |
| commit | 9c3e5686f36bc4ba76d510f27adc89f378a3a658 (patch) | |
| tree | c55033ed5e4f153e027767be160fbcf94364f755 /frontend/src/api/Maps.ts | |
| parent | docs/lphub: seperate contributors into a new file (#244) (diff) | |
| download | lphub-9c3e5686f36bc4ba76d510f27adc89f378a3a658.tar.gz lphub-9c3e5686f36bc4ba76d510f27adc89f378a3a658.tar.bz2 lphub-9c3e5686f36bc4ba76d510f27adc89f378a3a658.zip | |
fix/frontend: map pagination fix (#246)
Diffstat (limited to 'frontend/src/api/Maps.ts')
| -rw-r--r-- | frontend/src/api/Maps.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/api/Maps.ts b/frontend/src/api/Maps.ts index 3832a2e..aa967ce 100644 --- a/frontend/src/api/Maps.ts +++ b/frontend/src/api/Maps.ts | |||
| @@ -8,8 +8,8 @@ export const get_map_summary = async (map_id: string): Promise<MapSummary> => { | |||
| 8 | return response.data.data; | 8 | return response.data.data; |
| 9 | }; | 9 | }; |
| 10 | 10 | ||
| 11 | export const get_map_leaderboard = async (map_id: string): Promise<MapLeaderboard | undefined> => { | 11 | export const get_map_leaderboard = async (map_id: string, page: string): Promise<MapLeaderboard | undefined> => { |
| 12 | const response = await axios.get(url(`maps/${map_id}/leaderboards`)); | 12 | const response = await axios.get(url(`maps/${map_id}/leaderboards?page=${page}`)); |
| 13 | if (!response.data.success) { | 13 | if (!response.data.success) { |
| 14 | return undefined; | 14 | return undefined; |
| 15 | } | 15 | } |