Fix repeat after value being undefined error in task edit panel

This commit is contained in:
kolaente 2020-06-25 21:08:01 +02:00
parent 2a0632aa51
commit b86e1f3eca
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

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