Bug fix - Custom attributes getting duplicated
This commit is contained in:
parent
690727f1f9
commit
a86aeee033
3 changed files with 3 additions and 6 deletions
|
@ -162,7 +162,7 @@ export default {
|
|||
|
||||
data() {
|
||||
return {
|
||||
automationTypes: AUTOMATIONS,
|
||||
automationTypes: JSON.parse(JSON.stringify(AUTOMATIONS)),
|
||||
automationRuleEvent: AUTOMATION_RULE_EVENTS[0].key,
|
||||
automationRuleEvents: AUTOMATION_RULE_EVENTS,
|
||||
automationActionTypes: AUTOMATION_ACTION_TYPES,
|
||||
|
|
|
@ -173,7 +173,7 @@ export default {
|
|||
|
||||
data() {
|
||||
return {
|
||||
automationTypes: AUTOMATIONS,
|
||||
automationTypes: JSON.parse(JSON.stringify(AUTOMATIONS)),
|
||||
automationRuleEvent: AUTOMATION_RULE_EVENTS[0].key,
|
||||
automationRuleEvents: AUTOMATION_RULE_EVENTS,
|
||||
automationActionTypes: AUTOMATION_ACTION_TYPES,
|
||||
|
|
|
@ -311,10 +311,7 @@ export default {
|
|||
this.automation.actions[index].action_params = [];
|
||||
},
|
||||
manifestConditions(automation) {
|
||||
const allCustomAttributes = this.$store.getters[
|
||||
'attributes/getAttributes'
|
||||
];
|
||||
const customAttributes = allCustomAttributes.map(attr => {
|
||||
const customAttributes = this.allCustomAttributes.map(attr => {
|
||||
return {
|
||||
key: attr.attribute_key,
|
||||
name: attr.attribute_display_name,
|
||||
|
|
Loading…
Reference in a new issue