From cf0eaf9ba1816b610ba1cbc9b4a6c661f00f61a5 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Mon, 24 Oct 2022 15:41:05 +0200 Subject: [PATCH] chore: don't pass other params to ListGantt than route --- src/router/index.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index f2db4531e..9a00995e9 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -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',