Skip to content

Commit

Permalink
ZKUI-372 // disable empty button when successful delete
Browse files Browse the repository at this point in the history
  • Loading branch information
hervedombya committed Jul 25, 2023
1 parent 74e878c commit 82504d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/react/ui-elements/EmptyBucket/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ export const EmptyBucket = ({ bucketName }: EmptyBucketProps) => {
if (hasCompletedDeletion) {
setIsEnabled(false);
queryClient.removeQueries(queryKey);
queryClient.invalidateQueries(['checkIfBucketEmpty', bucketName]);
}
}, [hasCompletedDeletion]);

Expand Down

0 comments on commit 82504d3

Please sign in to comment.