diff --git a/app/attachment/[id]/route.tsx b/app/attachment/[id]/route.tsx index 4bb82d2..b153845 100644 --- a/app/attachment/[id]/route.tsx +++ b/app/attachment/[id]/route.tsx @@ -4,7 +4,7 @@ import { notFound } from 'next/navigation'; export async function GET(request: Request, { params:{ id } }: { params: { id:string } }) { const [locationID, billID] = id.split('-'); - const [location, bill] = await fetchBillById(locationID, billID) ? []; + const [location, bill] = await fetchBillById(locationID, billID) ?? []; if(!bill?.attachment) { notFound();