diff --git a/src/components/automation/AutomationManager.vue b/src/components/automation/AutomationManager.vue
index 9a8ca61..8def094 100644
--- a/src/components/automation/AutomationManager.vue
+++ b/src/components/automation/AutomationManager.vue
@@ -103,7 +103,7 @@
Copy
-
+
@@ -326,6 +326,7 @@ export default {
this.refresh();
this.$q.loading.hide();
this.notifySuccess("Policy was deleted!");
+ this.$store.dispatch("loadTree");
})
.catch(error => {
this.$q.loading.hide();
diff --git a/src/components/modals/alerts/AlertTemplateAdd.vue b/src/components/modals/alerts/AlertTemplateAdd.vue
index 0fb314b..dc3a320 100644
--- a/src/components/modals/alerts/AlertTemplateAdd.vue
+++ b/src/components/modals/alerts/AlertTemplateAdd.vue
@@ -58,7 +58,7 @@ export default {
methods: {
submit() {
// close because nothing was edited
- if (this.object.alertTemplate === this.selectedTemplate) {
+ if (this.object.alert_template === this.selectedTemplate) {
this.hide();
return;
}