1
0
Fork 0
mirror of synced 2024-07-04 14:01:27 +12:00

Enrich button actions nested inside conditions

This commit is contained in:
Andrew Kingston 2021-07-23 15:44:16 +01:00
parent d53cc48338
commit 4fd293063e

View file

@ -43,5 +43,17 @@ export const enrichProps = (props, context) => {
)
}
// Enrich any click actions in conditions
if (enrichedProps._conditions) {
enrichedProps._conditions.forEach(condition => {
if (condition.setting === "onClick") {
condition.settingValue = enrichButtonActions(
condition.settingValue,
totalContext
)
}
})
}
return enrichedProps
}