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 +4 -1
- package/package.json +1 -1
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 =
|
|
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
|
|