ywana-core8 0.0.106 → 0.0.107

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.106",
3
+ "version": "0.0.107",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -224,7 +224,8 @@ const TableEditor = (props) => {
224
224
  setPageContext(Object.assign({}, pageContext))
225
225
  }
226
226
 
227
- async function check(id, value) {
227
+ async function check(id, value, t) {
228
+ console.log('check() ',id, value, t)
228
229
  const ids = Array.isArray(id) ? id : [id]
229
230
  pageContext.check(ids, value)
230
231
  setPageContext(Object.assign({}, pageContext))
@@ -263,7 +264,7 @@ const TableEditor = (props) => {
263
264
  id: field.id,
264
265
  label: field.label,
265
266
  type: field.type,
266
- onChange: field.id === "checked" ? (rowID, id, value ) => { check(rowId, value) } : field.editable ? change : null, /* checked has it´s own handler */
267
+ onChange: field.id === "checked" ? check : field.editable ? change : null, /* checked has it´s own handler */
267
268
  options
268
269
  }
269
270
  }),