From 89560a61bc6e41d86acaea596762eda2da38fe50 Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Mon, 9 Sep 2024 19:29:42 +0300 Subject: refactor: upload run form, lots of random shit --- frontend/src/pages/Maplist.tsx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'frontend/src/pages/Maplist.tsx') diff --git a/frontend/src/pages/Maplist.tsx b/frontend/src/pages/Maplist.tsx index 3bc5f74..5d0c852 100644 --- a/frontend/src/pages/Maplist.tsx +++ b/frontend/src/pages/Maplist.tsx @@ -73,14 +73,9 @@ const Maplist: React.FC = () => { setNumChapters(games_chapters.chapters.length); } - const _fetch_maps = async () => { - const maps = await API.get_games_maps(gameId.toString()); - setLoad(true); - } - _fetch_game(); _fetch_game_chapters(); - _fetch_maps(); + setLoad(true); }, []); useEffect(() => { @@ -97,7 +92,7 @@ const Maplist: React.FC = () => { @@ -162,7 +157,7 @@ const Maplist: React.FC = () => {