ywana-core8 0.0.400 → 0.0.403

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": "ywana-core8",
3
- "version": "0.0.400",
3
+ "version": "0.0.403",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -263,10 +263,13 @@ const TableFilters = (props) => {
263
263
  const filterSchema = useMemo(() => {
264
264
  const filterSchema = Object.assign({}, schema)
265
265
  for (var key in filterSchema) {
266
- if (filterSchema[key].filter === false) delete filterSchema[key]
267
- if (filterSchema[key].type === TYPES.ENTITY) {
268
- const fs = filterSchema.item
269
- if (fs.filter === false) delete fs[key]
266
+ if (filterSchema[key].filter === false) {
267
+ delete filterSchema[key]
268
+ } else if (filterSchema[key].type === TYPES.ENTITY) {
269
+ const fs = filterSchema[key].item
270
+ for (var key in fs) {
271
+ if (fs[key].filter === false) delete fs[key]
272
+ }
270
273
  }
271
274
  }
272
275
  Object.values(filterSchema).forEach(field => field.section = null)