Ensure rows are cleaned before being passed to button actions in grids

This commit is contained in:
Andrew Kingston 2023-11-07 14:12:06 +00:00
parent c25b8a1448
commit 8017dd592b
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@
$: left = Math.min($width - $buttonColumnWidth, end)
const handleClick = async (button, row) => {
await button.onClick?.(row)
await button.onClick?.(rows.actions.cleanRow(row))
// Refresh the row in case it changed
await rows.actions.refreshRow(row._id)
}