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(angular/table): better handling of invalid data #1030

Merged
merged 1 commit into from
Jan 17, 2022
Merged

Conversation

jeripeierSBB
Copy link
Collaborator

The table data source is set up to expect an array and will throw a cryptic error
down the line if the value is anything different. While typings should be enough to enforce this,
if the value comes from somewhere in the view it may not get caught.
Since the effort for handling it on our end is minimal,
these changes add some logic that fall back to an empty array if the value is invalid.
angular/components#18953

The table data source is set up to expect an array and will throw a cryptic error
 down the line if the value is anything different. While typings should be enough to enforce this,
 if the value comes from somewhere in the view it may not get caught.
Since the effort for handling it on our end is minimal,
these changes add some logic that fall back to an empty array if the value is invalid.
angular/components#18953
@github-actions
Copy link

Staging ready from 712830b at 1/17/2022, 8:09:33 AM:

Copy link
Collaborator

@kyubisation kyubisation left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@jeripeierSBB jeripeierSBB merged commit 5e978c6 into master Jan 17, 2022
@jeripeierSBB jeripeierSBB deleted the fix-table branch January 17, 2022 11:49
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.

2 participants