fix: mark query parameter as string
This commit is contained in:
parent
4ac7d6b9df
commit
badbae0e9a
1 changed files with 2 additions and 2 deletions
|
@ -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',
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in a new issue