@trudb/tru-common-lib 0.2.324 → 0.2.326

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.
@@ -7647,7 +7647,7 @@ class TruDataGrid {
7647
7647
  selectedRowCount = 'Selected: 0';
7648
7648
  api;
7649
7649
  gridOptions = {
7650
- getRowId: (params) => { return params.data.$entity.Ref.toString(); },
7650
+ getRowId: (params) => { return params.data.$entity?.Ref.toString(); },
7651
7651
  context: {
7652
7652
  grid: this
7653
7653
  },
@@ -7818,7 +7818,7 @@ class TruDataGrid {
7818
7818
  if (change.changeOperation === 'D') {
7819
7819
  this.api.forEachNode((rowNode) => {
7820
7820
  if (rowNode.data.$entity.Ref === change.tableRef) {
7821
- rowNodesToRemove.push(rowNode);
7821
+ rowNodesToRemove.push({ Ref: rowNode.data.$entity.Ref });
7822
7822
  }
7823
7823
  });
7824
7824
  }
@@ -7827,7 +7827,7 @@ class TruDataGrid {
7827
7827
  if (rowNode.data.$entity.Ref === change.tableRef) {
7828
7828
  let results = this.dataContext.entityAccess().searchByRefArrayCacheOnly(this.config.resultConfig.entityType, this.latestSetupQuery, [rowNode.data.$entity.Ref]);
7829
7829
  if (!results)
7830
- rowNodesToRemove.push(rowNode);
7830
+ rowNodesToRemove.push({ Ref: rowNode.data.$entity.Ref });
7831
7831
  }
7832
7832
  });
7833
7833
  }