Fix changing the repeat mode of a task when no value is entered yet
This commit is contained in:
parent
f79f4101b6
commit
a5687d78f5
1 changed files with 4 additions and 0 deletions
|
@ -90,6 +90,10 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
updateData() {
|
updateData() {
|
||||||
|
if (this.task.repeatMode !== repeatModes.REPEAT_MODE_DEFAULT && this.repeatAfter.amount === 0) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
this.task.repeatAfter = this.repeatAfter
|
this.task.repeatAfter = this.repeatAfter
|
||||||
this.$emit('input', this.task)
|
this.$emit('input', this.task)
|
||||||
this.$emit('change')
|
this.$emit('change')
|
||||||
|
|
Loading…
Reference in a new issue