Skip to content

Commit 4802f5a

Browse files
authored
Merge branch 'master' into upgrade-dependencies
2 parents 0b80b3f + 6f0df68 commit 4802f5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

portal-ui/src/screens/Console/DirectCSI/DirectCSIDrives.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const DirectCSIMain = ({
116116
const [notAvailable, setNotAvailable] = useState<boolean>(true);
117117

118118
useEffect(() => {
119-
if (loading && !notAvailable) {
119+
if (loading) {
120120
api
121121
.invoke("GET", "/api/v1/direct-csi/drives")
122122
.then((res: IDrivesResponse) => {
@@ -303,7 +303,7 @@ const DirectCSIMain = ({
303303
<br />
304304
</Grid>
305305
<Grid item xs={12}>
306-
{notAvailable ? (
306+
{(notAvailable && !loading) ? (
307307
<div className={classes.notAvailableNotice}>
308308
To manage locally attached drives you need to install direct-csi,
309309
for more information

0 commit comments

Comments
 (0)