From 4712a766829055f816a1ea85857d94f56cccc3bf Mon Sep 17 00:00:00 2001 From: Josue Date: Thu, 15 Jul 2021 11:00:50 -0400 Subject: [PATCH] fix(front-end): remove unnecessary fetch --- striker-ui/pages/server/index.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/striker-ui/pages/server/index.tsx b/striker-ui/pages/server/index.tsx index 72fc281e..dde4121a 100644 --- a/striker-ui/pages/server/index.tsx +++ b/striker-ui/pages/server/index.tsx @@ -3,7 +3,6 @@ import { useRouter } from 'next/router'; import { Box } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; -import PeriodicFetch from '../../lib/fetchers/periodicFetch'; import { FullSize, Preview } from '../../components/Display'; import Header from '../../components/Header'; @@ -45,15 +44,10 @@ const Server = (): JSX.Element => { const router = useRouter(); const { uuid } = router.query; - const { data } = PeriodicFetch( - `${process.env.NEXT_PUBLIC_API_URL}/get_replicated_storage?server_uuid=${uuid}`, - ); - return ( <>
{typeof uuid === 'string' && - data && (previewMode ? (