fix: mark query parameter as string

This commit is contained in:
Dominik Pschenitschni 2022-02-09 17:52:27 +01:00
parent 4ac7d6b9df
commit badbae0e9a
No known key found for this signature in database
GPG key ID: B257AC0149F43A77

View file

@ -252,8 +252,8 @@ const router = createRouter({
name: 'tasks.range', name: 'tasks.range',
component: UpcomingTasksComponent, component: UpcomingTasksComponent,
props: route => ({ props: route => ({
dateFrom: parseDateOrString(route.query.from, new Date()), dateFrom: parseDateOrString(route.query.from as string, new Date()),
dateTo: parseDateOrString(route.query.to, getNextWeekDate()), dateTo: parseDateOrString(route.query.to as string, getNextWeekDate()),
showNulls: route.query.showNulls === 'true', showNulls: route.query.showNulls === 'true',
showOverdue: route.query.showOverdue === 'true', showOverdue: route.query.showOverdue === 'true',
}), }),