From 8017dd592b518c695ba2dde3961b6bacbc10a40f Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 7 Nov 2023 14:12:06 +0000 Subject: [PATCH] Ensure rows are cleaned before being passed to button actions in grids --- .../src/components/grid/layout/ButtonColumn.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend-core/src/components/grid/layout/ButtonColumn.svelte b/packages/frontend-core/src/components/grid/layout/ButtonColumn.svelte index 65b9d212ca..d484f9408d 100644 --- a/packages/frontend-core/src/components/grid/layout/ButtonColumn.svelte +++ b/packages/frontend-core/src/components/grid/layout/ButtonColumn.svelte @@ -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) }