fix: create multiple tasks at once with multiline input now correctly uses the titles per line

This commit is contained in:
kolaente 2021-10-26 21:29:58 +02:00
parent 1e4dd415cf
commit 6394485524
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -100,7 +100,7 @@ export default {
}
const task = await this.$store.dispatch('tasks/createNewTask', {
title: this.newTaskTitle,
title,
listId: this.$store.state.auth.settings.defaultListId,
position: this.defaultPosition,
})
@ -111,7 +111,7 @@ export default {
try {
await Promise.all(newTasks)
this.newTaskTitle = ''
} catch(e) {
} catch (e) {
if (e.message === 'NO_LIST') {
this.errorMessage = this.$t('list.create.addListRequired')
return