ods-component-lib 1.18.254 → 1.18.256
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/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -56526,7 +56526,7 @@ var mapCustomTask = function mapCustomTask(item) {
|
|
|
56526
56526
|
}, item);
|
|
56527
56527
|
};
|
|
56528
56528
|
var mapSelectedKeys = function mapSelectedKeys(datasource, key, selectedKeys) {
|
|
56529
|
-
if (key && key != "" && selectedKeys
|
|
56529
|
+
if (key && key != "" && selectedKeys) {
|
|
56530
56530
|
return datasource.map(function (x) {
|
|
56531
56531
|
x.isSelected = selectedKeys.some(function (y) {
|
|
56532
56532
|
return y == x[key];
|
|
@@ -56564,7 +56564,7 @@ var getStaticColumnWidth = function getStaticColumnWidth(props) {
|
|
|
56564
56564
|
};
|
|
56565
56565
|
var findMaxDataLength = function findMaxDataLength(data, dataField) {
|
|
56566
56566
|
var dataLengthList = data.map(function (item) {
|
|
56567
|
-
return item[dataField].length;
|
|
56567
|
+
return item[dataField] === null || item[dataField] === undefined ? 0 : item[dataField].length;
|
|
56568
56568
|
});
|
|
56569
56569
|
return Math.max.apply(Math, dataLengthList);
|
|
56570
56570
|
};
|