fix: show a proper error message when no list or default list was specified
This commit is contained in:
parent
5f27aa984d
commit
9bbc1bf939
2 changed files with 10 additions and 3 deletions
|
@ -139,8 +139,11 @@ const store = useStore()
|
||||||
const taskService = shallowReactive(new TaskService())
|
const taskService = shallowReactive(new TaskService())
|
||||||
const errorMessage = ref('')
|
const errorMessage = ref('')
|
||||||
|
|
||||||
function resetEmptyTitleError() {
|
function resetEmptyTitleError(e) {
|
||||||
if (newTaskTitle.value !== '') {
|
if (
|
||||||
|
(e.which <= 90 && e.which >= 48 || e.which >= 96 && e.which <= 105)
|
||||||
|
&& newTaskTitle.value !== ''
|
||||||
|
) {
|
||||||
errorMessage.value = ''
|
errorMessage.value = ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -299,6 +299,10 @@ export default {
|
||||||
listId: listId || 0,
|
listId: listId || 0,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if(foundListId === null || foundListId === 0) {
|
||||||
|
throw new Error('NO_LIST')
|
||||||
|
}
|
||||||
|
|
||||||
const assignees = await findAssignees(parsedTask.assignees)
|
const assignees = await findAssignees(parsedTask.assignees)
|
||||||
|
|
||||||
// I don't know why, but it all goes up in flames when I just pass in the date normally.
|
// I don't know why, but it all goes up in flames when I just pass in the date normally.
|
||||||
|
|
Loading…
Reference in a new issue