We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fd49dd commit 283cb08Copy full SHA for 283cb08
1 file changed
resources/scripts/components/dashboard/ServerRow.tsx
@@ -41,18 +41,14 @@ const StatusIndicatorBox = styled(GreyRowBox)<{ $status: ServerPowerState | unde
41
42
export default ({ server, className }: { server: Server; className?: string }) => {
43
const interval = useRef<number>(null);
44
- const [ statsError, setStatsError ] = useState(false);
45
const [ isSuspended, setIsSuspended ] = useState(server.isSuspended);
46
const [ stats, setStats ] = useState<ServerStats | null>(null);
47
48
const getStats = () => {
49
setStatsError(false);
50
return getServerResourceUsage(server.uuid)
51
.then(data => setStats(data))
52
- .catch(error => {
53
- setStatsError(true);
54
- console.error(error);
55
- });
+ .catch(error => console.error(error));
56
};
57
58
useEffect(() => {
0 commit comments