diff --git a/src/components/tasks/add-task.vue b/src/components/tasks/add-task.vue index 03c818f7..94f29189 100644 --- a/src/components/tasks/add-task.vue +++ b/src/components/tasks/add-task.vue @@ -139,8 +139,11 @@ const store = useStore() const taskService = shallowReactive(new TaskService()) const errorMessage = ref('') -function resetEmptyTitleError() { - if (newTaskTitle.value !== '') { +function resetEmptyTitleError(e) { + if ( + (e.which <= 90 && e.which >= 48 || e.which >= 96 && e.which <= 105) + && newTaskTitle.value !== '' + ) { errorMessage.value = '' } } @@ -209,7 +212,7 @@ function handleEnter(e: KeyboardEvent) { .button-text { display: none; } - + :deep(.icon) { margin: 0 !important; } diff --git a/src/store/modules/tasks.ts b/src/store/modules/tasks.ts index 2fadb2a0..209cdb95 100644 --- a/src/store/modules/tasks.ts +++ b/src/store/modules/tasks.ts @@ -298,6 +298,10 @@ export default { list: parsedTask.list, listId: listId || 0, }) + + if(foundListId === null || foundListId === 0) { + throw new Error('NO_LIST') + } const assignees = await findAssignees(parsedTask.assignees)