@onehat/data 1.6.12 → 1.6.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/data",
3
- "version": "1.6.12",
3
+ "version": "1.6.13",
4
4
  "description": "JS data modeling package with adapters for many storage mediums.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -377,6 +377,12 @@ class AjaxRepository extends Repository {
377
377
  if (this.debugMode) {
378
378
  console.log('load result ' + this.name, result);
379
379
  }
380
+
381
+ if (this.isDestroyed) {
382
+ // If this repository gets destroyed before it has a chance
383
+ // to process the Ajax request, just ignore the response.
384
+ return;
385
+ }
380
386
 
381
387
  const {
382
388
  root,