diff --git a/src/app/fragments/datasets-fragment/upload-steps/finishedFragment.tsx b/src/app/fragments/datasets-fragment/upload-steps/finishedFragment.tsx
index 9d7cd30fb..497e77e11 100644
--- a/src/app/fragments/datasets-fragment/upload-steps/finishedFragment.tsx
+++ b/src/app/fragments/datasets-fragment/upload-steps/finishedFragment.tsx
@@ -38,14 +38,16 @@ export default function FinishedFragment(props: Props) {
});
React.useEffect(() => {
- console.log("noyay");
+ let snackbarTimeOut: any;
if (props.dataTotalCount > 0) {
- console.log("yay");
setSnackbarState({ ...snackbarState, open: true });
- setTimeout(() => {
+ snackbarTimeOut = setTimeout(() => {
setSnackbarState({ ...snackbarState, open: false });
}, 10000);
}
+ return () => {
+ clearTimeout(snackbarTimeOut);
+ };
}, [props.dataTotalCount]);
return (
diff --git a/src/app/modules/chart-module/routes/preview-theme/index.tsx b/src/app/modules/chart-module/routes/preview-theme/index.tsx
index 7d13e370f..b0d6c4ceb 100644
--- a/src/app/modules/chart-module/routes/preview-theme/index.tsx
+++ b/src/app/modules/chart-module/routes/preview-theme/index.tsx
@@ -210,6 +210,7 @@ export function ChartBuilderPreviewTheme(props: ChartBuilderPreviewThemeProps) {
>