Skip to content
Snippets Groups Projects
Commit 0e7c94fb authored by Mohammad Torkashvand's avatar Mohammad Torkashvand
Browse files

make timeout more clear

parent 6806417e
No related branches found
No related tags found
1 merge request!31makes policy resource enum consistent
Pipeline #87056 passed
......@@ -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,
},
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment