itsa-react-table 16.8.2 → 16.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/component.jsx CHANGED
@@ -1034,7 +1034,10 @@ class Table extends React.Component {
1034
1034
  editableCols = props.editableCols,
1035
1035
  cursorNav = props.cursorNav,
1036
1036
  lowestColIndex = props.rowHeader ? 1 : 0,
1037
- highestColIndex = data.itsa_keys().length - (props.rowHeader ? 0 : 1),
1037
+ highestColIndex =
1038
+ data.length > 0
1039
+ ? data[0].itsa_keys().length - (props.rowHeader ? 0 : 1)
1040
+ : 0,
1038
1041
  columns = props.columns,
1039
1042
  hasColumns = columns && columns.length > 0;
1040
1043
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itsa-react-table",
3
- "version": "16.8.2",
3
+ "version": "16.8.3",
4
4
  "description": "Editable React.js table",
5
5
  "author": [
6
6
  {