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])
$: rowActions.refreshRowActions(id)
const makeRowActionButtons = rowActions => {
return (rowActions || []).map(action => ({
const makeRowActionButtons = actions => {
return (actions || []).map(action => ({
text: action.name,
onClick: async row => {
await rowActions.trigger(id, action.id, row._id)

View File

@ -62,8 +62,8 @@
$: buttons = makeRowActionButtons($rowActions[id])
$: rowActions.refreshRowActions(id)
const makeRowActionButtons = rowActions => {
return (rowActions || []).map(action => ({
const makeRowActionButtons = actions => {
return (actions || []).map(action => ({
text: action.name,
onClick: async row => {
await rowActions.trigger(id, action.id, row._id)