ywana-core8 0.0.413 → 0.0.414

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.413",
3
+ "version": "0.0.414",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -88,7 +88,7 @@ export class ContentType {
88
88
  const entries = Object.entries(this._schema)
89
89
 
90
90
  const form = entries.reduce((form, [id, field]) => {
91
- form[id] = Object.assign({}, field, { value: data[id] })
91
+ form[id] = Object.assign({}, field, { value: data[id] || field.defValue })
92
92
  return form
93
93
  }, {})
94
94
 
@@ -273,10 +273,7 @@ const TableFilters = (props) => {
273
273
  if (fs[key].filter === false) delete fs[key]
274
274
  }
275
275
  }
276
- // TODO: check this
277
- if (filterSchema[key].defValue) {
278
- change({ [key] : filterSchema[key].defValue })
279
- }
276
+
280
277
  }
281
278
  }
282
279
  //Object.values(filterSchema).forEach(field => field.section = null)