Browse Source

Enrich button actions nested inside conditions

pull/2115/head
Andrew Kingston 5 years ago
parent
commit
4fd293063e
  1. 12
      packages/client/src/utils/componentProps.js

12
packages/client/src/utils/componentProps.js

@ -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
}

Loading…
Cancel
Save