The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: check if children is present first
Jonathan Summers-Muir867f3d72217e
diff --git a/www/components/CodeBlock/CodeBlock.tsx b/www/components/CodeBlock/CodeBlock.tsxindex 7da07595f1e..34dab98ae6f 100644--- a/www/components/CodeBlock/CodeBlock.tsx+++ b/www/components/CodeBlock/CodeBlock.tsx@@ -59,7 +59,7 @@ function CodeBlock(props: Props) {>{props.children}</SyntaxHighlighter>- {!props.hideCopy && (+ {!props.hideCopy && props.children ? (<div className="absolute right-2 top-2 dark"><CopyToClipboard text={props.children}><Button type="outline" icon={<IconCopy />}>@@ -67,7 +67,7 @@ function CodeBlock(props: Props) {</Button></CopyToClipboard></div>- )}+ ) : null}</div>)}