You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorting a column with undefined data for some rows causes white screen.
Console error: Uncaught TypeError: Cannot read property 'localeCompare' of undefined
This occurs when some of the rows do not have the datafield defined. For example:
data = [
{
"foo":1,
"bar":2
},
{
"foo":3
}
]
The error occurs when attempting to sort on the "bar" column.
Expected Behavior
The table should still sort on that column, grouping columns with undefined data, and not cause the page to render a white screen.
Current Behavior
The entire page renders as a white screen, and the console displays the following error: Uncaught TypeError: Cannot read property 'localeCompare' of undefined
Sorting a column with undefined data for some rows causes white screen.
Console error:
Uncaught TypeError: Cannot read property 'localeCompare' of undefined
This occurs when some of the rows do not have the datafield defined. For example:
The error occurs when attempting to sort on the "bar" column.
Expected Behavior
The table should still sort on that column, grouping columns with undefined data, and not cause the page to render a white screen.
Current Behavior
The entire page renders as a white screen, and the console displays the following error:
Uncaught TypeError: Cannot read property 'localeCompare' of undefined
Steps to Reproduce (for bugs)
https://codesandbox.io/embed/gracious-microservice-wdwp6
Your Environment
The text was updated successfully, but these errors were encountered: