fix: added missing "?"

This commit is contained in:
2024-01-17 16:11:41 +01:00
parent c72ad320c3
commit a65410af79

View File

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