From 283cb08e339e210009a2de61057aafebf7562576 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 31 Oct 2020 13:55:45 -0700 Subject: [PATCH] Remove unused --- resources/scripts/components/dashboard/ServerRow.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/resources/scripts/components/dashboard/ServerRow.tsx b/resources/scripts/components/dashboard/ServerRow.tsx index 41227ab62..3a32ff74c 100644 --- a/resources/scripts/components/dashboard/ServerRow.tsx +++ b/resources/scripts/components/dashboard/ServerRow.tsx @@ -41,7 +41,6 @@ const StatusIndicatorBox = styled(GreyRowBox)<{ $status: ServerPowerState | unde export default ({ server, className }: { server: Server; className?: string }) => { const interval = useRef(null); - const [ statsError, setStatsError ] = useState(false); const [ isSuspended, setIsSuspended ] = useState(server.isSuspended); const [ stats, setStats ] = useState(null); @@ -49,10 +48,7 @@ export default ({ server, className }: { server: Server; className?: string }) = setStatsError(false); return getServerResourceUsage(server.uuid) .then(data => setStats(data)) - .catch(error => { - setStatsError(true); - console.error(error); - }); + .catch(error => console.error(error)); }; useEffect(() => {