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() {
|
data() {
|
||||||
return {
|
return {
|
||||||
automationTypes: AUTOMATIONS,
|
automationTypes: JSON.parse(JSON.stringify(AUTOMATIONS)),
|
||||||
automationRuleEvent: AUTOMATION_RULE_EVENTS[0].key,
|
automationRuleEvent: AUTOMATION_RULE_EVENTS[0].key,
|
||||||
automationRuleEvents: AUTOMATION_RULE_EVENTS,
|
automationRuleEvents: AUTOMATION_RULE_EVENTS,
|
||||||
automationActionTypes: AUTOMATION_ACTION_TYPES,
|
automationActionTypes: AUTOMATION_ACTION_TYPES,
|
||||||
|
|
|
@ -173,7 +173,7 @@ export default {
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
automationTypes: AUTOMATIONS,
|
automationTypes: JSON.parse(JSON.stringify(AUTOMATIONS)),
|
||||||
automationRuleEvent: AUTOMATION_RULE_EVENTS[0].key,
|
automationRuleEvent: AUTOMATION_RULE_EVENTS[0].key,
|
||||||
automationRuleEvents: AUTOMATION_RULE_EVENTS,
|
automationRuleEvents: AUTOMATION_RULE_EVENTS,
|
||||||
automationActionTypes: AUTOMATION_ACTION_TYPES,
|
automationActionTypes: AUTOMATION_ACTION_TYPES,
|
||||||
|
|
|
@ -311,10 +311,7 @@ export default {
|
||||||
this.automation.actions[index].action_params = [];
|
this.automation.actions[index].action_params = [];
|
||||||
},
|
},
|
||||||
manifestConditions(automation) {
|
manifestConditions(automation) {
|
||||||
const allCustomAttributes = this.$store.getters[
|
const customAttributes = this.allCustomAttributes.map(attr => {
|
||||||
'attributes/getAttributes'
|
|
||||||
];
|
|
||||||
const customAttributes = allCustomAttributes.map(attr => {
|
|
||||||
return {
|
return {
|
||||||
key: attr.attribute_key,
|
key: attr.attribute_key,
|
||||||
name: attr.attribute_display_name,
|
name: attr.attribute_display_name,
|
||||||
|
|
Loading…
Reference in a new issue