Fix repeat after value being undefined error in task edit panel
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2020-06-25 21:08:01 +02:00
parent 2a0632aa51
commit b86e1f3eca
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 7 additions and 2 deletions

View File

@ -43,7 +43,10 @@
data() {
return {
task: {},
repeatAfter: {},
repeatAfter: {
amount: 0,
type: '',
},
}
},
props: {
@ -61,7 +64,9 @@
},
mounted() {
this.task = this.value
this.repeatAfter = this.value.repeatAfter
if (typeof this.value.repeatAfter !== 'undefined') {
this.repeatAfter = this.value.repeatAfter
}
},
methods: {
updateData() {