Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Alert } from '@mui/material';
import { v4 as uuidv4 } from 'uuid';

// AlertBanner is one of the few components that does NOT have getPConnect.
// So, no need to extend PConnProps
Expand Down Expand Up @@ -30,7 +31,7 @@ export default function AlertBanner(props: AlertBannerProps) {
return (
<div id={id}>
{messages.map(message => (
<Alert key={message} variant='outlined' severity={SEVERITY_MAP[variant]} {...additionalProps}>
<Alert key={uuidv4()} variant='outlined' severity={SEVERITY_MAP[variant]} {...additionalProps}>
{message}
</Alert>
))}
Expand Down
Loading