@trudb/tru-common-lib 0.0.639 → 0.0.640

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.
@@ -3061,12 +3061,12 @@ class TruDataGrid {
3061
3061
  };
3062
3062
  this.getRowCount = () => {
3063
3063
  let count = 0;
3064
- this.gridOptions.api.forEachNodeAfterFilter(() => count++);
3064
+ this.gridOptions.api?.forEachNodeAfterFilter(() => count++);
3065
3065
  return 'Rows: ' + count;
3066
3066
  };
3067
3067
  this.getSelectedRowCount = () => {
3068
3068
  let count = 0;
3069
- count = this.gridOptions.api.getSelectedRows().length;
3069
+ count = this.gridOptions.api?.getSelectedRows().length;
3070
3070
  return 'Selected: ' + count;
3071
3071
  };
3072
3072
  this.onRowDataChanged = (data) => {