From 0e7c94fbc1dd0901a89366f8e55b1346afe71c49 Mon Sep 17 00:00:00 2001
From: Mohammad Torkashvand <mohammad.torkashvand@geant.org>
Date: Wed, 5 Jun 2024 10:22:33 +0200
Subject: [PATCH] make timeout more clear

---
 pages/maps/index.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pages/maps/index.tsx b/pages/maps/index.tsx
index b76d967..4cbbb5a 100644
--- a/pages/maps/index.tsx
+++ b/pages/maps/index.tsx
@@ -15,7 +15,7 @@ const MapsPage: React.FC = () => {
     useState<NetworkTopologyData | null>(null);
   const [loading, setLoading] = useState<boolean>(true);
   const [error, setError] = useState<boolean>(false);
-  const TIMEOUT = 5000;
+  const TIMEOUT_MS = 30000;
   const config = useGsoConfig();
   const { session } = useWfoSession();
 
@@ -28,7 +28,7 @@ const MapsPage: React.FC = () => {
         const response = await axios.get<NetworkTopologyData>(
           config.networkTopologyApiUrl!,
           {
-            timeout: TIMEOUT,
+            timeout: TIMEOUT_MS,
             headers: requestHeaders,
           },
         );
-- 
GitLab