ywana-core8 0.0.60 → 0.0.64

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.60",
3
+ "version": "0.0.64",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -242,7 +242,11 @@ 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, item) }/>) : []
245
+ item.actions = actions ? actions.map(action => {
246
+ return action.filter ?
247
+ action.filter(item) ? <Icon icon={action.icon} clickable size="small" action={() => run(action, item) }/> : null
248
+ : <Icon icon={action.icon} clickable size="small" action={() => run(action, item) }/>
249
+ }) : []
246
250
  item.actions.push(<Icon icon="delete" size="small" clickable action={() => remove(item.id)} />)
247
251
  return item
248
252
  })