chore: don't pass other params to ListGantt than route
This commit is contained in:
parent
8dea4082bb
commit
cf0eaf9ba1
@ -379,13 +379,8 @@ const router = createRouter({
|
|||||||
name: 'list.gantt',
|
name: 'list.gantt',
|
||||||
component: ListGantt,
|
component: ListGantt,
|
||||||
beforeEnter: (to) => saveListView(to.params.listId, to.name),
|
beforeEnter: (to) => saveListView(to.params.listId, to.name),
|
||||||
props: route => ({
|
// FIXME: test if `useRoute` would be the same. If it would use it instead.
|
||||||
listId: Number(route.params.listId as string),
|
props: route => ({route}),
|
||||||
dateFrom: route.query.dateFrom as string,
|
|
||||||
dateTo: route.query.dateTo as string,
|
|
||||||
showTasksWithoutDates: Boolean(route.query.showTasksWithoutDates),
|
|
||||||
route,
|
|
||||||
}),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/lists/:listId/table',
|
path: '/lists/:listId/table',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user