Removed not available comparison (#797)

This commit is contained in:
Alex
2021-06-08 12:35:38 -05:00
committed by GitHub
parent 9a8106d714
commit 6f0df68200

View File

@@ -116,7 +116,7 @@ const DirectCSIMain = ({
const [notAvailable, setNotAvailable] = useState<boolean>(true);
useEffect(() => {
if (loading && !notAvailable) {
if (loading) {
api
.invoke("GET", "/api/v1/direct-csi/drives")
.then((res: IDrivesResponse) => {
@@ -303,7 +303,7 @@ const DirectCSIMain = ({
<br />
</Grid>
<Grid item xs={12}>
{notAvailable ? (
{(notAvailable && !loading) ? (
<div className={classes.notAvailableNotice}>
To manage locally attached drives you need to install direct-csi,
for more information