bruce-models 2.6.3 → 2.6.5

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.
@@ -6347,7 +6347,7 @@ var EntityAttachment;
6347
6347
  api.Cache.Remove(GetCacheKey(attachments[i].ID));
6348
6348
  }
6349
6349
  }
6350
- api.Cache.Remove(GetListCacheKey(entityId));
6350
+ yield api.Cache.Remove(GetListCacheKey(entityId));
6351
6351
  return {
6352
6352
  attachments: res.attachments
6353
6353
  };
@@ -6385,7 +6385,8 @@ var EntityAttachment;
6385
6385
  throw ("Entity id and attachment id.");
6386
6386
  }
6387
6387
  yield api.DELETE(`entity/${entityId}/attachments/${attachmentId}`, Api.PrepReqParams(req));
6388
- api.Cache.Remove(GetCacheKey(attachmentId));
6388
+ yield api.Cache.Remove(GetCacheKey(attachmentId));
6389
+ yield api.Cache.Remove(GetListCacheKey(params.entityId));
6389
6390
  });
6390
6391
  }
6391
6392
  EntityAttachment.Delete = Delete;
@@ -8012,7 +8013,9 @@ var EntityFilterGetter;
8012
8013
  postedLoading = true;
8013
8014
  }
8014
8015
  // Only mark as fetched when ALL pages are done.
8015
- if (entities.length <= 0) {
8016
+ // Known issue where external sources may return less than page size.
8017
+ // Right now we're making it as fetched as we're siding with the majority use-case.
8018
+ if (entities.length <= 0 || entities.length < PAGE_SIZE) {
8016
8019
  curCell.Fetched = true;
8017
8020
  curCell.Fetching = false;
8018
8021
  (_d = this.onScanUpdate) === null || _d === void 0 ? void 0 : _d.Trigger(cells);