Fixed refresh button on ListObjects screen (#2728)

This commit is contained in:
jinapurapu
2023-03-22 14:39:44 -07:00
committed by GitHub
parent 502a6c462f
commit 1e345364cf

View File

@@ -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) => {
@@ -429,7 +429,7 @@ const ListObjects = () => {
dispatch(setErrorSnackMessage(err));
});
}
}, [bucketName, loadingBucket, dispatch, anonymousMode]);
}, [bucketName, loadingBucket, dispatch, anonymousMode, loadingObjects]);
// Load retention Config