Fix ticket view mounting

This commit is contained in:
Jonas Plum
2022-10-22 23:57:11 +02:00
committed by Jonas Plum
parent 11323e5622
commit 406d8290ab

View File

@@ -117,7 +117,6 @@
<v-card-title>Select new Template</v-card-title>
<v-card-text>
<v-select
v-if="templates"
label="Template"
:items="templates"
item-text="name"
@@ -455,7 +454,6 @@
</v-card-title>
<v-card-text>
<v-select
v-if="playbooks"
:items="playbooks"
item-text="name"
item-value="id"
@@ -1553,11 +1551,10 @@ export default Vue.extend({
}
},
mounted() {
if (this.$route.params.id === 'new') {
return
if (this.$route.params.id !== 'new') {
this.loadTicket();
}
this.loadTicket();
API.listUsers().then(response => {
this.users = response.data;
});