From b13c1ce8a0133c0b9ba46fd2dc8e639104e5c340 Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Fri, 18 Jun 2021 17:39:29 +0200 Subject: [PATCH] Fix unique key in ui-notification-toast Signed-off-by: Tilman Vatteroth --- src/components/notifications/ui-notification-toast.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/notifications/ui-notification-toast.tsx b/src/components/notifications/ui-notification-toast.tsx index 6923a2835..e09b5ebb4 100644 --- a/src/components/notifications/ui-notification-toast.tsx +++ b/src/components/notifications/ui-notification-toast.tsx @@ -74,13 +74,13 @@ export const UiNotificationToast: React.FC = ({ const buttonsDom = useMemo( () => - buttons?.map((button) => { + buttons?.map((button, buttonIndex) => { const buttonClick = () => { button.onClick() dismissThisNotification() } return ( - ) @@ -89,9 +89,9 @@ export const UiNotificationToast: React.FC = ({ ) const contentDom = useMemo(() => { - return content.split('\n').map((value) => { + return content.split('\n').map((value, lineNumber) => { return ( - + {value}