X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/31a15158b7598ecfa0f8311d4d7ddce1c6287fcc..1c48c437ac3d6f7ac0b7fe8203417de79564acfe:/src/views-components/snackbar/snackbar.tsx

diff --git a/src/views-components/snackbar/snackbar.tsx b/src/views-components/snackbar/snackbar.tsx
index 2d077cf7..7e1a9b06 100644
--- a/src/views-components/snackbar/snackbar.tsx
+++ b/src/views-components/snackbar/snackbar.tsx
@@ -136,6 +136,10 @@ export const Snackbar = withStyles(styles)(connect(mapStateToProps, mapDispatchT
 ));
 
 const actions = (props: SnackbarMessage, onClick, onClose, classes, index, autoHideDuration) => {
+    if (onClose && autoHideDuration) {
+        setTimeout(onClose, autoHideDuration + 1000);
+    }
+
     const actions = [
         <IconButton
             key="close"
