From a5687d78f5bf68561e29283bbdaa4eeaca9fae7f Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 15 Aug 2021 11:25:06 +0200 Subject: [PATCH] Fix changing the repeat mode of a task when no value is entered yet --- src/components/tasks/partials/repeatAfter.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/tasks/partials/repeatAfter.vue b/src/components/tasks/partials/repeatAfter.vue index d957f1f9..da9caed6 100644 --- a/src/components/tasks/partials/repeatAfter.vue +++ b/src/components/tasks/partials/repeatAfter.vue @@ -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')