1
0
Fork 0
mirror of synced 2024-09-21 03:43:21 +12:00

Fix issue triggering row actions from data UI

This commit is contained in:
Andrew Kingston 2024-09-04 08:40:37 +01:00
parent 26b5784345
commit 6ce481c08f
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -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)

View file

@ -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)