-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix notify function when no type is passed #6768
Conversation
I'd had added that exact change in #6760, but reverted for some reason, It seems ok. |
} else if (type) { | ||
const { type: messageType, ...options } = type; | ||
dispatch(showNotification(message, messageType, options)); | ||
} else { | ||
dispatch(showNotification(message)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
} else if (type) { | |
const { type: messageType, ...options } = type; | |
dispatch(showNotification(message, messageType, options)); | |
} else { | |
dispatch(showNotification(message)); | |
} else { | |
const { type: messageType, ...options } = type || {}; | |
dispatch(showNotification(message, messageType, options)); | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
#6713 was fixing this problem but #6760 makes it happen again
Close #6767