ywana-core8 0.0.412 → 0.0.415

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.412",
3
+ "version": "0.0.415",
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,12 @@ const TableFilters = (props) => {
273
273
  if (fs[key].filter === false) delete fs[key]
274
274
  }
275
275
  }
276
- // TODO: check this
276
+
277
277
  if (filterSchema[key].defValue) {
278
- change({ [key] : filterSchema[key].defValue })
278
+ const next = Object.assign(filters. {[key] : filterSchema[key].defValue})
279
+ pageContext.changeFilters(next)
279
280
  }
281
+
280
282
  }
281
283
  }
282
284
  //Object.values(filterSchema).forEach(field => field.section = null)