diff --git a/frontend/src/components/common/ActionsNotifier.tsx b/frontend/src/components/common/ActionsNotifier.tsx index 7a2505bdf5..afb258e6b6 100644 --- a/frontend/src/components/common/ActionsNotifier.tsx +++ b/frontend/src/components/common/ActionsNotifier.tsx @@ -51,16 +51,20 @@ function PureActionsNotifier({ dispatch, clusterActions }: PureActionsNotifierPr } const prevKey = snackbarRefs.current[clusterAction.id]; - const uniqueKey = clusterAction.key || clusterAction.id; + const uniqueKey = `${clusterAction.key || clusterAction.id}-${Date.now()}`; if (prevKey && prevKey !== uniqueKey) { closeSnackbar(prevKey); } if (clusterAction.message) { - // Check for completed actions + // Check for success or error states const refKey = - clusterAction.state === 'complete' ? `${clusterAction.id}-complete` : clusterAction.id; + clusterAction.state === 'complete' + ? `${clusterAction.id}-complete` + : clusterAction.state === 'error' + ? `${clusterAction.id}-error` + : clusterAction.id; if (!snackbarRefs.current[refKey]) { snackbarRefs.current[refKey] = uniqueKey;