Fix button action enrichment

This commit is contained in:
Andrew Kingston 2021-02-03 15:53:25 +00:00
parent 5b10482fa7
commit e42b12668a
1 changed files with 4 additions and 1 deletions

View File

@ -46,7 +46,10 @@ export const enrichProps = async (props, context, user) => {
// Enrich button actions if they exist // Enrich button actions if they exist
if (props._component.endsWith("/button") && enrichedProps.onClick) { if (props._component.endsWith("/button") && enrichedProps.onClick) {
enrichedProps.onClick = enrichButtonActions(enrichedProps.onClick) enrichedProps.onClick = enrichButtonActions(
enrichedProps.onClick,
totalContext
)
} }
return enrichedProps return enrichedProps