Fix button action enrichment
This commit is contained in:
parent
5b10482fa7
commit
e42b12668a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue