Skip to content

Commit 05dad48

Browse files
committed
wip
1 parent 5a89ef4 commit 05dad48

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

app/share/[id]/page.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ export default async function Page({ params }: { params: { id: string } }) {
2020
},
2121
});
2222

23-
return <CodeViewer code={generatedApp?.code} />;
23+
if (!generatedApp) {
24+
return <div>App not found</div>;
25+
}
26+
27+
return <CodeViewer code={generatedApp.code} />;
2428
}
2529

2630
let sampleCode = `

0 commit comments

Comments
 (0)