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]);