chore: don't pass other params to ListGantt than route

This commit is contained in:
Dominik Pschenitschni 2022-10-24 15:41:05 +02:00 committed by kolaente
parent 8dea4082bb
commit cf0eaf9ba1
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 7 deletions

View File

@ -379,13 +379,8 @@ const router = createRouter({
name: 'list.gantt',
component: ListGantt,
beforeEnter: (to) => saveListView(to.params.listId, to.name),
props: route => ({
listId: Number(route.params.listId as string),
dateFrom: route.query.dateFrom as string,
dateTo: route.query.dateTo as string,
showTasksWithoutDates: Boolean(route.query.showTasksWithoutDates),
route,
}),
// FIXME: test if `useRoute` would be the same. If it would use it instead.
props: route => ({route}),
},
{
path: '/lists/:listId/table',