@onehat/data 1.16.6 → 1.16.7

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.16.6",
3
+ "version": "1.16.7",
4
4
  "description": "JS data modeling package with adapters for many storage mediums.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -780,7 +780,7 @@ class AjaxRepository extends Repository {
780
780
 
781
781
  // Delete it from this.entities
782
782
  const id = entity.id;
783
- this.entities = _.omitBy(this.entities, (entity) => entity.id === id);
783
+ this.entities = _.filter(this.entities, (entity) => entity.id === id);
784
784
  entity.destroy();
785
785
  });
786
786
  }