From c10be4a3fda070fbda13c1a900334a808e31915b Mon Sep 17 00:00:00 2001
From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>
Date: Tue, 22 Oct 2024 01:05:06 +0300
Subject: frontend

---
 frontend/src/components/UploadRunDialog.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'frontend/src/components/UploadRunDialog.tsx')

diff --git a/frontend/src/components/UploadRunDialog.tsx b/frontend/src/components/UploadRunDialog.tsx
index 8c20702..39794b5 100644
--- a/frontend/src/components/UploadRunDialog.tsx
+++ b/frontend/src/components/UploadRunDialog.tsx
@@ -65,7 +65,7 @@ const UploadRunDialog: React.FC<UploadRunDialogProps> = ({ token, open, onClose,
     const gameMaps = await API.get_game_maps(game_id);
     setSelectedGameMaps(gameMaps);
     setUploadRunContent({
-      map_id: gameMaps[0].id,
+      map_id: gameMaps.find((map) => !map.is_disabled)!.id, //gameMaps[0].id,
       host_demo: null,
       partner_demo: null,
     });
-- 
cgit v1.2.3

