Fix changing the repeat mode of a task when no value is entered yet

This commit is contained in:
kolaente 2021-08-15 11:25:06 +02:00
parent f79f4101b6
commit a5687d78f5
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 4 additions and 0 deletions

View File

@ -90,6 +90,10 @@ export default {
},
methods: {
updateData() {
if (this.task.repeatMode !== repeatModes.REPEAT_MODE_DEFAULT && this.repeatAfter.amount === 0) {
return
}
this.task.repeatAfter = this.repeatAfter
this.$emit('input', this.task)
this.$emit('change')