@onehat/data 1.8.12 → 1.8.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.8.12",
3
+ "version": "1.8.13",
4
4
  "description": "JS data modeling package with adapters for many storage mediums.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -716,10 +716,12 @@ export default class Repository extends EventEmitter {
716
716
  isChanged = true;
717
717
  this.filters = filters;
718
718
  this.resetPagination();
719
- this.emit('changeFilters');
719
+ let ret;
720
720
  if (this._onChangeFilters) {
721
- return this._onChangeFilters();
721
+ ret = this._onChangeFilters();
722
722
  }
723
+ this.emit('changeFilters');
724
+ return ret;
723
725
  }
724
726
  return isChanged;
725
727
  }