Skip to content

fix(angular/table): better handling of invalid data#1030

Merged
jeripeierSBB merged 1 commit into
masterfrom
fix-table
Jan 17, 2022
Merged

fix(angular/table): better handling of invalid data#1030
jeripeierSBB merged 1 commit into
masterfrom
fix-table

Conversation

@jeripeierSBB
Copy link
Copy Markdown
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
Copy Markdown

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

Copy link
Copy Markdown
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