Remove initial server health check and bump Harbor versions
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
||||
import React, { useEffect, useMemo, useState } from 'react';
|
||||
import { api } from '../api.js';
|
||||
import {
|
||||
autoServer,
|
||||
@@ -115,7 +115,6 @@ export function ServerPicker({
|
||||
const [collapsed, setCollapsed] = useState([]);
|
||||
const [pings, setPings] = useState({});
|
||||
const [checking, setChecking] = useState(false);
|
||||
const initialCheckStarted = useRef(false);
|
||||
const serverKey = servers.map(({ id }) => id).join('|');
|
||||
|
||||
useEffect(() => {
|
||||
@@ -189,12 +188,6 @@ export function ServerPicker({
|
||||
}
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
if (initialCheckStarted.current || !servers.length) return;
|
||||
initialCheckStarted.current = true;
|
||||
checkVisible();
|
||||
}, [serverKey]);
|
||||
|
||||
if (servers.length === 1) {
|
||||
return <section className="client-servers" aria-label="Выберите сервер">
|
||||
{prompt && <span className="client-server-prompt">Выберите сервер</span>}
|
||||
|
||||
Reference in New Issue
Block a user