Fix issue triggering row actions from data UI
This commit is contained in:
parent
26b5784345
commit
6ce481c08f
|
@ -24,8 +24,8 @@
|
||||||
$: buttons = makeRowActionButtons($rowActions[id])
|
$: buttons = makeRowActionButtons($rowActions[id])
|
||||||
$: rowActions.refreshRowActions(id)
|
$: rowActions.refreshRowActions(id)
|
||||||
|
|
||||||
const makeRowActionButtons = rowActions => {
|
const makeRowActionButtons = actions => {
|
||||||
return (rowActions || []).map(action => ({
|
return (actions || []).map(action => ({
|
||||||
text: action.name,
|
text: action.name,
|
||||||
onClick: async row => {
|
onClick: async row => {
|
||||||
await rowActions.trigger(id, action.id, row._id)
|
await rowActions.trigger(id, action.id, row._id)
|
||||||
|
|
|
@ -62,8 +62,8 @@
|
||||||
$: buttons = makeRowActionButtons($rowActions[id])
|
$: buttons = makeRowActionButtons($rowActions[id])
|
||||||
$: rowActions.refreshRowActions(id)
|
$: rowActions.refreshRowActions(id)
|
||||||
|
|
||||||
const makeRowActionButtons = rowActions => {
|
const makeRowActionButtons = actions => {
|
||||||
return (rowActions || []).map(action => ({
|
return (actions || []).map(action => ({
|
||||||
text: action.name,
|
text: action.name,
|
||||||
onClick: async row => {
|
onClick: async row => {
|
||||||
await rowActions.trigger(id, action.id, row._id)
|
await rowActions.trigger(id, action.id, row._id)
|
||||||
|
|
Loading…
Reference in New Issue