Bug fix - Custom attributes getting duplicated

This commit is contained in:
Fayaz Ahmed 2022-05-12 14:02:35 +05:30
parent 690727f1f9
commit a86aeee033
3 changed files with 3 additions and 6 deletions

View file

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

View file

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

View file

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