ywana-core8 0.0.548 → 0.0.549

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.548",
3
+ "version": "0.0.549",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -536,13 +536,13 @@ const TableEditor = (props) => {
536
536
  }
537
537
  }),
538
538
  rows: groups[groupName]
539
- .map(item => {
539
+ .map((item, index) => {
540
540
  item.actions = actions ? actions.map(action => {
541
541
  return action.filter ?
542
542
  action.filter(item) ? <Icon icon={action.icon} clickable size="small" action={() => run(action, item)} /> : null
543
543
  : <Icon icon={action.icon} clickable size="small" action={() => run(action, item)} />
544
544
  }) : []
545
- if (canDelete) item.actions.push(<Icon icon="delete" size="small" clickable action={() => remove(item.id)} />)
545
+ if (canDelete) item.actions.push(<Icon icon="delete" size="small" clickable action={() => remove(index)} />)
546
546
  return item
547
547
  })
548
548
  }