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() {
|
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
|
||||||
|
if (typeof this.value.repeatAfter !== 'undefined') {
|
||||||
this.repeatAfter = this.value.repeatAfter
|
this.repeatAfter = this.value.repeatAfter
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
updateData() {
|
updateData() {
|
||||||
|
|
Loading…
Reference in a new issue