Skip to content

Commit d671629

Browse files
assign array to customers data if fetch fails
1 parent 206938a commit d671629

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

app/dashboard/invoices/create/page.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ export const metadata: Metadata = {
99
};
1010

1111
export default async function Page() {
12-
const customers = await fetchCustomers();
13-
debugger;
14-
12+
const customers = await fetchCustomers() ?? [];
13+
1514
return (
1615
<main>
1716
<Breadcrumbs

0 commit comments

Comments
 (0)