diff options
| author | Wolfboy248 <georgejvindkarlsen@gmail.com> | 2024-10-30 09:39:05 +0100 |
|---|---|---|
| committer | Wolfboy248 <georgejvindkarlsen@gmail.com> | 2024-10-30 09:39:05 +0100 |
| commit | 5f96f004e001fd59b09683f6690bd83bf0c3b8bb (patch) | |
| tree | 7fd9aeecaf3f8098dd85e07f217bffaf08eaba3e | |
| parent | frontend: maplist chapter param fix (diff) | |
| download | lphub-5f96f004e001fd59b09683f6690bd83bf0c3b8bb.tar.gz lphub-5f96f004e001fd59b09683f6690bd83bf0c3b8bb.tar.bz2 lphub-5f96f004e001fd59b09683f6690bd83bf0c3b8bb.zip | |
frontend: maplist chapter param fix
| -rw-r--r-- | frontend/src/pages/Maplist.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/pages/Maplist.tsx b/frontend/src/pages/Maplist.tsx index 31b7b2e..e3d7aab 100644 --- a/frontend/src/pages/Maplist.tsx +++ b/frontend/src/pages/Maplist.tsx | |||
| @@ -80,7 +80,7 @@ const Maplist: React.FC = () => { | |||
| 80 | 80 | ||
| 81 | useEffect(() => { | 81 | useEffect(() => { |
| 82 | const queryParams = new URLSearchParams(location.search); | 82 | const queryParams = new URLSearchParams(location.search); |
| 83 | if (gameChapters != undefined && queryParams.get("chapter") == "") { | 83 | if (gameChapters != undefined && !queryParams.get("chapter")) { |
| 84 | _fetch_chapters(gameChapters!.chapters[0].id.toString()); | 84 | _fetch_chapters(gameChapters!.chapters[0].id.toString()); |
| 85 | } | 85 | } |
| 86 | }, [gameChapters]) | 86 | }, [gameChapters]) |