ywana-core8 0.0.410 → 0.0.413

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/index.umd.js CHANGED
@@ -5762,11 +5762,20 @@
5762
5762
  for (var key in filterSchema) {
5763
5763
  if (filterSchema[key].filter === false) {
5764
5764
  delete filterSchema[key];
5765
- } else if (filterSchema[key].type === TYPES.ENTITY) {
5766
- var fs = filterSchema[key].item;
5765
+ } else {
5766
+ if (filterSchema[key].type === TYPES.ENTITY) {
5767
+ var fs = filterSchema[key].item;
5768
+
5769
+ for (var key in fs) {
5770
+ if (fs[key].filter === false) delete fs[key];
5771
+ }
5772
+ } // TODO: check this
5773
+
5774
+
5775
+ if (filterSchema[key].defValue) {
5776
+ var _change;
5767
5777
 
5768
- for (var key in fs) {
5769
- if (fs[key].filter === false) delete fs[key];
5778
+ change((_change = {}, _change[key] = filterSchema[key].defValue, _change));
5770
5779
  }
5771
5780
  }
5772
5781
  } //Object.values(filterSchema).forEach(field => field.section = null)