diff --git a/mixins/recipeMixin.js b/mixins/recipeMixin.js index 882b65da..189b4254 100644 --- a/mixins/recipeMixin.js +++ b/mixins/recipeMixin.js @@ -188,7 +188,12 @@ export default { methods: { // Returns an action summary. actionSummary(action) { - const actionType = _.find(this.$store.state.recipeActions, {value: action.type}).text + const actionObj = _.find(this.$store.state.recipeActions, {value: action.type}) + if (!actionObj) { + return `Undocumented action: ${action.type} - ${action.value || action.friendlyValue}` + } + + const actionType = actionObj.text const valueText = action.friendlyValue || action.value const isBoolean = this.booleanActions.includes(action.type) diff --git a/pages/automations/edit.vue b/pages/automations/edit.vue index 42dec28f..923acfd2 100644 --- a/pages/automations/edit.vue +++ b/pages/automations/edit.vue @@ -143,7 +143,7 @@ - Some of these conditions might only work if the "Delayed processing" is enabled on your Account. + Some of these conditions might work best if the "Delayed processing" is enabled on your Account.
mdi-plus-circle