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
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

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')