From badbae0e9a02bb84c4ed8ddfd971f52cdcc58de0 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Wed, 9 Feb 2022 17:52:27 +0100 Subject: [PATCH] fix: mark query parameter as string --- src/router/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index b1989901..a1f6a2e6 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -252,8 +252,8 @@ const router = createRouter({ name: 'tasks.range', component: UpcomingTasksComponent, props: route => ({ - dateFrom: parseDateOrString(route.query.from, new Date()), - dateTo: parseDateOrString(route.query.to, getNextWeekDate()), + dateFrom: parseDateOrString(route.query.from as string, new Date()), + dateTo: parseDateOrString(route.query.to as string, getNextWeekDate()), showNulls: route.query.showNulls === 'true', showOverdue: route.query.showOverdue === 'true', }),