Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#1559] fix(web): fix data cache when closing modal (#1711)

CHEYNE55faffa16637
diff --git a/web/app/ui/CreateMetalakeDialog.js b/web/app/ui/CreateMetalakeDialog.js
index f9b7ca22c2..fc0f3b9e38 100644
--- a/web/app/ui/CreateMetalakeDialog.js
+++ b/web/app/ui/CreateMetalakeDialog.js
@@ -176,7 +176,7 @@ const CreateMetalakeDialog = props => {
<IconButton
className={'twc-absolute twc-right-[1rem] twc-top-[1rem]'}
size='small'
- onClick={() => setOpen(false)}
+ onClick={() => handleClose()}
>
<Icon icon='bx:x' />
</IconButton>
diff --git a/web/app/ui/metalakes/CreateCatalogDialog.js b/web/app/ui/metalakes/CreateCatalogDialog.js
index 049a599c7d..f13ca596c6 100644
--- a/web/app/ui/metalakes/CreateCatalogDialog.js
+++ b/web/app/ui/metalakes/CreateCatalogDialog.js
@@ -265,7 +265,7 @@ const CreateCatalogDialog = props => {
>
<IconButton
size='small'
- onClick={() => setOpen(false)}
+ onClick={() => handleClose()}
sx={{ position: 'absolute', right: '1rem', top: '1rem' }}
>
<Icon icon='bx:x' />