react-bootstrap-table-nextgen
Advanced tools
Comparing version 4.3.10 to 4.3.11
@@ -135,18 +135,22 @@ "use strict"; | ||
content = data.map(function (row, index) { | ||
var key = utils_1["default"].get(row, keyField); | ||
var baseRowProps = Object.assign({ | ||
key: key, | ||
row: row, | ||
tabIndexCell: tabIndexCell, | ||
columns: columns, | ||
keyField: keyField, | ||
cellEdit: cellEdit, | ||
value: key, | ||
rowIndex: index, | ||
visibleColumnSize: visibleColumnSize, | ||
attrs: rowEvents || {} | ||
}, additionalRowProps); | ||
baseRowProps.style = utils_1["default"].isFunction(rowStyle) ? rowStyle(row, index) : rowStyle; | ||
baseRowProps.className = utils_1["default"].isFunction(rowClasses) ? rowClasses(row, index) : rowClasses; | ||
return react_1["default"].createElement(_this2.RowComponent, Object.assign({}, baseRowProps)); | ||
if (row) { | ||
var key = utils_1["default"].get(row, keyField); | ||
var baseRowProps = Object.assign({ | ||
key: key, | ||
row: row, | ||
tabIndexCell: tabIndexCell, | ||
columns: columns, | ||
keyField: keyField, | ||
cellEdit: cellEdit, | ||
value: key, | ||
rowIndex: index, | ||
visibleColumnSize: visibleColumnSize, | ||
attrs: rowEvents || {} | ||
}, additionalRowProps); | ||
baseRowProps.style = utils_1["default"].isFunction(rowStyle) ? rowStyle(row, index) : rowStyle; | ||
baseRowProps.className = utils_1["default"].isFunction(rowClasses) ? rowClasses(row, index) : rowClasses; | ||
return react_1["default"].createElement(_this2.RowComponent, Object.assign({}, baseRowProps)); | ||
} else { | ||
return null; | ||
} | ||
}); | ||
@@ -153,0 +157,0 @@ } |
{ | ||
"name": "react-bootstrap-table-nextgen", | ||
"version": "4.3.10", | ||
"version": "4.3.11", | ||
"description": "Next generation of react-bootstrap-table", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2963174
8551