From f13e1c7e68f1a9bc76f74fc0e410ba47ce16d1db Mon Sep 17 00:00:00 2001 From: MariaAga Date: Mon, 28 Oct 2024 16:02:21 +0000 Subject: [PATCH] Fixes #37915 - Give Toasts keys for ToastsList --- .../javascripts/react_app/components/ToastsList/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webpack/assets/javascripts/react_app/components/ToastsList/index.js b/webpack/assets/javascripts/react_app/components/ToastsList/index.js index 5d07619cb93..42f781e6458 100644 --- a/webpack/assets/javascripts/react_app/components/ToastsList/index.js +++ b/webpack/assets/javascripts/react_app/components/ToastsList/index.js @@ -18,8 +18,8 @@ const ToastsList = ({ railsMessages }) => { const messages = useSelector(selectToastsList); useEffect(() => { - railsMessages.forEach(({ message, type, key }) => { - dispatch(addToast({ message, type, key })); + railsMessages.forEach(({ message, type }) => { + dispatch(addToast({ message, type })); }); }, [dispatch, railsMessages]);