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.
- package/dist/bruce-models.es5.js +6 -3
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +6 -3
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/entity/entity-attachment.js +3 -2
- package/dist/lib/entity/entity-attachment.js.map +1 -1
- package/dist/lib/entity/getters/entity-filter-getter.js +3 -1
- package/dist/lib/entity/getters/entity-filter-getter.js.map +1 -1
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -6274,7 +6274,7 @@
|
|
|
6274
6274
|
api.Cache.Remove(GetCacheKey(attachments[i].ID));
|
|
6275
6275
|
}
|
|
6276
6276
|
}
|
|
6277
|
-
api.Cache.Remove(GetListCacheKey(entityId));
|
|
6277
|
+
yield api.Cache.Remove(GetListCacheKey(entityId));
|
|
6278
6278
|
return {
|
|
6279
6279
|
attachments: res.attachments
|
|
6280
6280
|
};
|
|
@@ -6312,7 +6312,8 @@
|
|
|
6312
6312
|
throw ("Entity id and attachment id.");
|
|
6313
6313
|
}
|
|
6314
6314
|
yield api.DELETE(`entity/${entityId}/attachments/${attachmentId}`, exports.Api.PrepReqParams(req));
|
|
6315
|
-
api.Cache.Remove(GetCacheKey(attachmentId));
|
|
6315
|
+
yield api.Cache.Remove(GetCacheKey(attachmentId));
|
|
6316
|
+
yield api.Cache.Remove(GetListCacheKey(params.entityId));
|
|
6316
6317
|
});
|
|
6317
6318
|
}
|
|
6318
6319
|
EntityAttachment.Delete = Delete;
|
|
@@ -7885,7 +7886,9 @@
|
|
|
7885
7886
|
postedLoading = true;
|
|
7886
7887
|
}
|
|
7887
7888
|
// Only mark as fetched when ALL pages are done.
|
|
7888
|
-
|
|
7889
|
+
// Known issue where external sources may return less than page size.
|
|
7890
|
+
// Right now we're making it as fetched as we're siding with the majority use-case.
|
|
7891
|
+
if (entities.length <= 0 || entities.length < PAGE_SIZE) {
|
|
7889
7892
|
curCell.Fetched = true;
|
|
7890
7893
|
curCell.Fetching = false;
|
|
7891
7894
|
(_d = this.onScanUpdate) === null || _d === void 0 ? void 0 : _d.Trigger(cells);
|