diff --git a/packages/client/src/utils/componentProps.js b/packages/client/src/utils/componentProps.js index 938ed59ac1..42bb6e624a 100644 --- a/packages/client/src/utils/componentProps.js +++ b/packages/client/src/utils/componentProps.js @@ -46,7 +46,10 @@ export const enrichProps = async (props, context, user) => { // Enrich button actions if they exist if (props._component.endsWith("/button") && enrichedProps.onClick) { - enrichedProps.onClick = enrichButtonActions(enrichedProps.onClick) + enrichedProps.onClick = enrichButtonActions( + enrichedProps.onClick, + totalContext + ) } return enrichedProps