Fix repeat after value being undefined error in task edit panel
This commit is contained in:
parent
2a0632aa51
commit
b86e1f3eca
1 changed files with 7 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue