Skip to content

Commit

Permalink
Fixes #37915 - Give Toasts keys for ToastsList
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaAga committed Oct 28, 2024
1 parent 92e7ae9 commit f13e1c7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down

0 comments on commit f13e1c7

Please sign in to comment.