@bchr/bchr-front-lib 0.4.2 → 0.4.4

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.
@@ -553,6 +553,10 @@ var GridForBrowse = /*#__PURE__*/function (_React$Component) {
553
553
  }, {
554
554
  key: "buildCell",
555
555
  value: function buildCell(config, props) {
556
+ if (!this.gridRef.current) {
557
+ return /*#__PURE__*/_react["default"].createElement("td", null);
558
+ }
559
+
556
560
  var allColumns = this.gridRef.current.columns;
557
561
  var dataItem = props.dataItem,
558
562
  columnIndex = props.columnIndex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bchr/bchr-front-lib",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "description": "bchr front lib",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -44,7 +44,6 @@
44
44
  "@progress/kendo-react-progressbars": "^3.15.0",
45
45
  "@progress/kendo-treeview-react-wrapper": "^2019.4.1014",
46
46
  "antd": "^4.5.4",
47
- "file-saver": "^2.0.5",
48
47
  "handsontable": "^7.2.2",
49
48
  "jquery": "^3.5.1",
50
49
  "moment": "^2.27.0",
@@ -294,6 +294,10 @@ class GridForBrowse extends React.Component{
294
294
  }
295
295
 
296
296
  buildCell(config, props) {
297
+ if (!this.gridRef.current) {
298
+ return <td></td>;
299
+ }
300
+
297
301
  let allColumns = this.gridRef.current.columns;
298
302
  let {dataItem, columnIndex} = props;
299
303
  let {default_locked_fields, customCells, grid_info_record_of_data_check} = this.props;