ywana-core8 0.0.463 → 0.0.466

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.463",
3
+ "version": "0.0.466",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -202,14 +202,14 @@ const TableSelector = (props) => {
202
202
  columns,
203
203
  rows: rows || []
204
204
  }
205
- const buttons = actions.map(({ label, action }) => {
205
+ const buttons = actions.map(({ label, action, validate }) => {
206
206
  return <Button
207
207
  label={label} raised
208
208
  action={() => action(checked, pageContext, async () => {
209
209
  await pageContext.load()
210
210
  setPageContext(Object.assign({}, pageContext))
211
211
  })}
212
- disabled={ action.validate ? !action.validate(checked) : false }
212
+ disabled={!validate(checked)}
213
213
  />
214
214
  })
215
215