ywana-core8 0.0.59 → 0.0.60

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.59",
3
+ "version": "0.0.60",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -203,7 +203,7 @@ const TableEditor = (props) => {
203
203
  setPageContext(Object.assign({}, pageContext))
204
204
  }
205
205
 
206
- function run(action) {
206
+ function run(action, item) {
207
207
  action.action(item.id, pageContext, async () => {
208
208
  await pageContext.load()
209
209
  setPageContext(Object.assign({}, pageContext))
@@ -242,7 +242,7 @@ const TableEditor = (props) => {
242
242
  }),
243
243
  rows: groups[groupName]
244
244
  .map(item => {
245
- item.actions = actions ? actions.map(action => <Icon icon={action.icon} clickable size="small" action={() => run(action) }/>) : []
245
+ item.actions = actions ? actions.map(action => <Icon icon={action.icon} clickable size="small" action={() => run(action, item) }/>) : []
246
246
  item.actions.push(<Icon icon="delete" size="small" clickable action={() => remove(item.id)} />)
247
247
  return item
248
248
  })