diff --git a/frontend/src/views/project/helpers/useGanttTaskList.ts b/frontend/src/views/project/helpers/useGanttTaskList.ts index 8349b3c7c..506f24546 100644 --- a/frontend/src/views/project/helpers/useGanttTaskList.ts +++ b/frontend/src/views/project/helpers/useGanttTaskList.ts @@ -33,7 +33,7 @@ export function useGanttTaskList( 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) { const nextTasks = await fetchTasks(params, page + 1) return tasks.concat(nextTasks)