From a0f26c9a4f442234f1a0b0a028ecb40d7ed12eb6 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 3 Feb 2021 15:53:25 +0000 Subject: [PATCH] Fix button action enrichment --- packages/client/src/utils/componentProps.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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