diff --git a/portal-ui/src/screens/Console/DirectCSI/DirectCSIDrives.tsx b/portal-ui/src/screens/Console/DirectCSI/DirectCSIDrives.tsx index 12073265e..7eb982604 100644 --- a/portal-ui/src/screens/Console/DirectCSI/DirectCSIDrives.tsx +++ b/portal-ui/src/screens/Console/DirectCSI/DirectCSIDrives.tsx @@ -116,7 +116,7 @@ const DirectCSIMain = ({ const [notAvailable, setNotAvailable] = useState(true); useEffect(() => { - if (loading && !notAvailable) { + if (loading) { api .invoke("GET", "/api/v1/direct-csi/drives") .then((res: IDrivesResponse) => { @@ -303,7 +303,7 @@ const DirectCSIMain = ({
- {notAvailable ? ( + {(notAvailable && !loading) ? (
To manage locally attached drives you need to install direct-csi, for more information