ywana-core8 0.0.43 → 0.0.44

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
@@ -4155,9 +4155,12 @@
4155
4155
 
4156
4156
  var filterSchema = React.useMemo(function () {
4157
4157
  var filterSchema = Object.assign({}, schema);
4158
- Object.values(filterSchema).filter(function (field) {
4159
- return field.filter === true;
4160
- }).forEach(function (field) {
4158
+
4159
+ for (var key in filterSchema) {
4160
+ if (filterSchema[key].filter === false) delete filterSchema[key];
4161
+ }
4162
+
4163
+ Object.values(filterSchema).forEach(function (field) {
4161
4164
  return field.section = null;
4162
4165
  });
4163
4166
  delete filterSchema.flows;