@koalarx/ui 13.2.8 → 13.2.9

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.
@@ -1340,10 +1340,12 @@ class KoalaApiRequesterBase {
1340
1340
  return filter ?? null;
1341
1341
  }
1342
1342
  request(method, url, data = {}) {
1343
- if (this.enableCache && KoalaApiRequesterCache.hasCache(url)) {
1344
- return KoalaApiRequesterCache.getCacheAsObservable(url);
1343
+ if (this.enableCache) {
1344
+ if (KoalaApiRequesterCache.hasCache(url)) {
1345
+ return KoalaApiRequesterCache.getCacheAsObservable(url);
1346
+ }
1347
+ KoalaApiRequesterCache.createCache(url);
1345
1348
  }
1346
- KoalaApiRequesterCache.createCache(url);
1347
1349
  return this.koalaService
1348
1350
  .request(method, url, data)
1349
1351
  .pipe(map(response => {