[Dashboard] Don't sort node list by defult (#25884)

This commit is contained in:
Guyang Song 2022-06-20 11:35:12 +08:00 committed by GitHub
parent 3de4657cae
commit e13cc4088a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ export const useNodeList = () => {
{ key: "hostname" | "ip" | "state"; val: string }[]
>([]);
const [page, setPage] = useState({ pageSize: 10, pageNo: 1 });
const { sorterFunc, setOrderDesc, setSortKey, sorterKey } = useSorter("cpu");
const { sorterFunc, setOrderDesc, setSortKey, sorterKey } = useSorter("");
const tot = useRef<NodeJS.Timeout>();
const changeFilter = (key: "hostname" | "ip" | "state", val: string) => {
const f = filter.find((e) => e.key === key);