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
Describe the bug
When e.g. all columns of a table are marked as sticky, the scrollable range of the cell matrix can be empty. This causes RowRenderer to crash at
Because cellMatrix.scrollableRange.last.column is undefined.
Admittedly, this is an edge case, but it can happen in our application when the user unselects all non-mandatory columns.
Current behavior
reactgrid crashes when the scrollable range is empty
Expected behavior
I expect reactgrid not to crash
The text was updated successfully, but these errors were encountered:
Yes, all columns of a table are marked as sticky, the scrollable range of the cell matrix can be empty.
Adding the optional chaining operator is usually aimed at accessing the properties of nested objects more safely and avoiding runtime errors that may be caused by the fact that the value of the "column" property might be undefined.
Describe the bug
When e.g. all columns of a table are marked as sticky, the scrollable range of the cell matrix can be empty. This causes RowRenderer to crash at
reactgrid/src/lib/Components/RowRenderer.tsx
Line 42 in c981381
Because cellMatrix.scrollableRange.last.column is undefined.
Admittedly, this is an edge case, but it can happen in our application when the user unselects all non-mandatory columns.
Current behavior
reactgrid crashes when the scrollable range is empty
Expected behavior
I expect reactgrid not to crash
The text was updated successfully, but these errors were encountered: