From 7d40ffd1dae4376bf176e046ba87881c04dd6626 Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Thu, 29 Oct 2020 00:25:43 +0100 Subject: [PATCH] workaround for build error --- pages/admin/booking/[uuid]/bill.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/admin/booking/[uuid]/bill.tsx b/pages/admin/booking/[uuid]/bill.tsx index 8b1fbe7..8c1b678 100644 --- a/pages/admin/booking/[uuid]/bill.tsx +++ b/pages/admin/booking/[uuid]/bill.tsx @@ -1,4 +1,4 @@ -import { GetServerSideProps, NextApiHandler, NextApiRequest } from 'next' +import { GetServerSideProps } from 'next' import React, { useEffect, useState } from 'react' import Footer from '../../../../components/footer' import Header from '../../../../components/header' @@ -17,7 +17,7 @@ import { getServerSideBooking } from '../../../../lib/getServerSideProps' export const getServerSideProps: GetServerSideProps = withSession( async (context) => { - const { req, res, params } = context + const { req, res } = context const authenticatedUser = authenticate(req, res) if (!authenticatedUser) { @@ -33,6 +33,8 @@ export const getServerSideProps: GetServerSideProps = withSession( const result = await getServerSideBooking(context) return { ...result, + // TODO: have a closer look at this type issue. Seems like a bug + // @ts-ignore props: { ...result.props, milageMax }, } }