Skip to content

Commit 85be0c7

Browse files
Copilothotlong
andcommitted
fix: restore value param in action column executeAction call
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 324bc12 commit 85be0c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/plugin-grid/src/ObjectGrid.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ export const ObjectGrid: React.FC<ObjectGridProps> = ({
517517
};
518518
} else if (col.action) {
519519
// Action column: render as action button
520-
cellRenderer = (_value: any, row: any) => {
520+
cellRenderer = (value: any, row: any) => {
521521
return (
522522
<Button
523523
variant="outline"
@@ -528,7 +528,7 @@ export const ObjectGrid: React.FC<ObjectGridProps> = ({
528528
e.stopPropagation();
529529
executeAction({
530530
type: col.action!,
531-
params: { record: row, field: col.field },
531+
params: { record: row, field: col.field, value },
532532
});
533533
}}
534534
>

0 commit comments

Comments
 (0)