From d79713aa8ed122ce52096031df8073bdc7f97456 Mon Sep 17 00:00:00 2001 From: Divyansh Kamboj Date: Thu, 14 Nov 2024 17:49:51 +0530 Subject: [PATCH] fix refresh of bucketList page after deleting a bucket Signed-off-by: Divyansh Kamboj --- .../s3-browser/buckets-list-page/bucketListTable.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/odf/components/s3-browser/buckets-list-page/bucketListTable.tsx b/packages/odf/components/s3-browser/buckets-list-page/bucketListTable.tsx index 46f0d786c..5102d2b43 100644 --- a/packages/odf/components/s3-browser/buckets-list-page/bucketListTable.tsx +++ b/packages/odf/components/s3-browser/buckets-list-page/bucketListTable.tsx @@ -221,6 +221,7 @@ export const BucketsListTable: React.FC = ({ loaded, error, setEmptyBucketResponse, + triggerRefresh, }) => { const { t } = useCustomTranslation(); const [favorites, setFavorites] = useUserSettingsLocalStorage( @@ -242,7 +243,13 @@ export const BucketsListTable: React.FC = ({ loadError={error} isFavorites={true} variant={TableVariant.compact} - extraProps={{ favorites, setFavorites, setEmptyBucketResponse, launcher }} + extraProps={{ + favorites, + setFavorites, + triggerRefresh, + setEmptyBucketResponse, + launcher, + }} /> ); };