Skip to content

Commit

Permalink
Fixed refresh button on ListObjects screen (minio#2728)
Browse files Browse the repository at this point in the history
  • Loading branch information
jinapurapu authored Mar 22, 2023
1 parent 502a6c4 commit 1e34536
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ const ListObjects = () => {

// bucket info
useEffect(() => {
if (loadingBucket && !anonymousMode) {
if ((loadingObjects || loadingBucket) && !anonymousMode) {
api
.invoke("GET", `/api/v1/buckets/${bucketName}`)
.then((res: BucketInfo) => {
Expand All @@ -429,7 +429,7 @@ const ListObjects = () => {
dispatch(setErrorSnackMessage(err));
});
}
}, [bucketName, loadingBucket, dispatch, anonymousMode]);
}, [bucketName, loadingBucket, dispatch, anonymousMode, loadingObjects]);

// Load retention Config

Expand Down

0 comments on commit 1e34536

Please sign in to comment.