Skip to content
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 undefined notification should not break #3384

Merged
merged 4 commits into from
Aug 10, 2020

Conversation

compulim
Copy link
Contributor

@compulim compulim commented Aug 6, 2020

Fixes #3383.

Changelog Entry

Fixed

  • Fixes #3383. Fixed notification toast should not break when most fields are undefined, by @compulim in PR #3384

Description

When a notification is passed with most fields undefined, it should not break.

Specific Changes

  • Defaulting some critically required fields (id and level).
  • When message is undefined, assume it is empty string

  • Testing Added

Copy link
Contributor

@corinagum corinagum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pending minor comments

@compulim compulim force-pushed the fix-3383-undefined-toast branch from feb6f7c to a8efb1d Compare August 10, 2020 06:27
@compulim compulim merged commit f0d49cc into microsoft:master Aug 10, 2020
@compulim compulim deleted the fix-3383-undefined-toast branch August 10, 2020 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Passing undefined to message of notification toast will throw exception
2 participants