@trudb/tru-common-lib 0.2.467 → 0.2.469

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.
@@ -8286,7 +8286,11 @@ class TruDataChangeParser {
8286
8286
  update = async (payload) => {
8287
8287
  await this.isSaving();
8288
8288
  var reloadResults = false;
8289
- payload.changes.filter((change) => { return change.modifiedRef.toString() !== this.user.activeUserRef.toString(); }).forEach(async (change) => {
8289
+ payload.changes.filter((change) => {
8290
+ if (!change.modifiedRef)
8291
+ console.log(change);
8292
+ return change.modifiedRef && change.modifiedRef.toString() !== this.user.activeUserRef.toString();
8293
+ }).forEach(async (change) => {
8290
8294
  var foundEntities = [];
8291
8295
  var localEntity = this.findEntityInCache(change);
8292
8296
  var globalEntity = this.findEntityInGlobalCache(change);
@@ -9295,14 +9299,8 @@ class TruDataGrid {
9295
9299
  const firstGridTop = siblingGrids.length ? siblingGrids[0].getBoundingClientRect().top : hostEl.getBoundingClientRect().top;
9296
9300
  const detailRect = detailContent.getBoundingClientRect();
9297
9301
  const availableTotal = detailContent.clientHeight - (firstGridTop - detailRect.top) - 10; // small bottom padding
9298
- if (availableTotal <= 0) {
9299
- hostEl.style.height = '250px';
9300
- const apiAny = this.api;
9301
- if (apiAny?.doLayout) {
9302
- apiAny.doLayout();
9303
- }
9302
+ if (availableTotal <= 0)
9304
9303
  return;
9305
- }
9306
9304
  const perGridOverhead = 45; // toolbar + statusbar overhead (v6 does something similar i am just porting here)
9307
9305
  const distributedHeight = siblingGrids.length > 1
9308
9306
  ? (availableTotal - (siblingGrids.length - 1) * perGridOverhead) / siblingGrids.length