fix(views): make gantt view load tasks again
This commit is contained in:
parent
73e5483e87
commit
86039b1dd2
@ -33,7 +33,7 @@ export function useGanttTaskList<F extends Filters>(
|
|||||||
params.filter_timezone = authStore.settings.timezone
|
params.filter_timezone = authStore.settings.timezone
|
||||||
}
|
}
|
||||||
|
|
||||||
const tasks = await taskCollectionService.getAll({projectId: filters.value.projectId}, params, page) as ITask[]
|
const tasks = await taskCollectionService.getAll({projectId: filters.value.projectId, viewId: view.id}, params, page) as ITask[]
|
||||||
if (loadAll && page < taskCollectionService.totalPages) {
|
if (loadAll && page < taskCollectionService.totalPages) {
|
||||||
const nextTasks = await fetchTasks(params, page + 1)
|
const nextTasks = await fetchTasks(params, page + 1)
|
||||||
return tasks.concat(nextTasks)
|
return tasks.concat(nextTasks)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user