bruce-models 1.0.2 → 1.0.3
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 +12 -1
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +12 -1
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/project/project-view-bookmark.js +12 -1
- package/dist/lib/project/project-view-bookmark.js.map +1 -1
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -4488,7 +4488,18 @@
|
|
|
4488
4488
|
const req = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
|
|
4489
4489
|
try {
|
|
4490
4490
|
const data = yield api.GET(`ui.view/${viewId}/slides`, exports.Api.PrepReqParams(reqParams));
|
|
4491
|
-
|
|
4491
|
+
const items = data.Items ? data.Items : [];
|
|
4492
|
+
// Cache individual items.
|
|
4493
|
+
// Maybe better to load list cache when getting 1 slide and seeing if it's in there.
|
|
4494
|
+
// WARNING: Right now the data matches, in the future the list may contain a shortened result.
|
|
4495
|
+
for (let i = 0; i < items.length; i++) {
|
|
4496
|
+
const item = items[i];
|
|
4497
|
+
const prom = new Promise((res) => {
|
|
4498
|
+
res(item);
|
|
4499
|
+
});
|
|
4500
|
+
api.Cache.Set(GetCacheKey(viewId, item.ID), prom, exports.Api.DEFAULT_CACHE_DURATION);
|
|
4501
|
+
}
|
|
4502
|
+
res(items);
|
|
4492
4503
|
}
|
|
4493
4504
|
catch (e) {
|
|
4494
4505
|
rej(e);
|