diff --git a/src/components/tasks/add-task.vue b/src/components/tasks/add-task.vue index 799d33d94..1f16e6925 100644 --- a/src/components/tasks/add-task.vue +++ b/src/components/tasks/add-task.vue @@ -93,8 +93,13 @@ export default { const newTasks = [] this.newTaskTitle.split(/[\r\n]+/).forEach(t => { + const title = cleanupTitle(t) + if (title === '') { + return + } + newTasks.push( - this.createNewTask(cleanupTitle(t), 0, this.$store.state.auth.settings.defaultListId, this.defaultPosition) + this.createNewTask(title, 0, this.$store.state.auth.settings.defaultListId, this.defaultPosition) .then(task => { this.$emit('taskAdded', task) return task