fix: createNewTask typing
This commit is contained in:
parent
e6654140c7
commit
091599bdf0
|
@ -320,7 +320,7 @@ const tasksStore : Module<TaskState, RootStoreState>= {
|
|||
return foundListId
|
||||
},
|
||||
|
||||
async createNewTask({dispatch, commit}, {
|
||||
async createNewTask(ctx, {
|
||||
title,
|
||||
bucketId,
|
||||
listId,
|
||||
|
@ -328,10 +328,10 @@ const tasksStore : Module<TaskState, RootStoreState>= {
|
|||
} :
|
||||
Partial<ITask>,
|
||||
) {
|
||||
const cancel = setLoading({commit}, 'tasks')
|
||||
const cancel = setLoading(ctx, 'tasks')
|
||||
const parsedTask = parseTaskText(title, getQuickAddMagicMode())
|
||||
|
||||
const foundListId = await dispatch('findListId', {
|
||||
const foundListId = await ctx.dispatch('findListId', {
|
||||
list: parsedTask.list,
|
||||
listId: listId || 0,
|
||||
})
|
||||
|
|
Reference in New Issue