Updated BasicDashboard UI to expand drives initially if single server (#1768)

This commit is contained in:
jinapurapu
2022-03-26 15:25:14 -07:00
committed by GitHub
parent 2765fb0c97
commit fcd50257ee

View File

@@ -27,7 +27,7 @@ import { Box } from "@mui/material";
import DriveInfoItem from "./DriveInfoItem";
const ServersList = ({ data }: { data: ServerInfo[] }) => {
const [expanded, setExpanded] = React.useState<string>("");
const [expanded, setExpanded] = React.useState<string>(data.length >1 ? "" : data[0].endpoint+"-0");
const handleClick = (key: string) => {
setExpanded(key);