From 6f0df6820090397439a9be80024811f87f8de86e Mon Sep 17 00:00:00 2001 From: Alex <33497058+bexsoft@users.noreply.github.com> Date: Tue, 8 Jun 2021 12:35:38 -0500 Subject: [PATCH] Removed not available comparison (#797) --- portal-ui/src/screens/Console/DirectCSI/DirectCSIDrives.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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