Skip to content

Commit 283cb08

Browse files
committed
Remove unused
1 parent 7fd49dd commit 283cb08

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

resources/scripts/components/dashboard/ServerRow.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,14 @@ const StatusIndicatorBox = styled(GreyRowBox)<{ $status: ServerPowerState | unde
4141

4242
export default ({ server, className }: { server: Server; className?: string }) => {
4343
const interval = useRef<number>(null);
44-
const [ statsError, setStatsError ] = useState(false);
4544
const [ isSuspended, setIsSuspended ] = useState(server.isSuspended);
4645
const [ stats, setStats ] = useState<ServerStats | null>(null);
4746

4847
const getStats = () => {
4948
setStatsError(false);
5049
return getServerResourceUsage(server.uuid)
5150
.then(data => setStats(data))
52-
.catch(error => {
53-
setStatsError(true);
54-
console.error(error);
55-
});
51+
.catch(error => console.error(error));
5652
};
5753

5854
useEffect(() => {

0 commit comments

Comments
 (0)