diff --git a/src/react/ui-elements/EmptyBucket/index.tsx b/src/react/ui-elements/EmptyBucket/index.tsx index d1ec3892f..c5d756f99 100644 --- a/src/react/ui-elements/EmptyBucket/index.tsx +++ b/src/react/ui-elements/EmptyBucket/index.tsx @@ -147,6 +147,7 @@ export const EmptyBucket = ({ bucketName }: EmptyBucketProps) => { refetchOnWindowFocus: false, refetchOnMount: true, refetchOnReconnect: false, + additionalDepsToUpdateQueryFn: [bucketName], }, (data) => createDeleteObjectsData(data.DeleteMarkers, data.Versions), ); @@ -209,12 +210,12 @@ export const EmptyBucket = ({ bucketName }: EmptyBucketProps) => { } overlayStyle={{ width: '9rem', - display: isBucketEmpty ? 'none' : undefined, + display: isBucketEmpty ? undefined : 'none', }} >