The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: default state for SqlToRest translator (#33333)
Charis7a940d2a5d2c
diff --git a/packages/ui-patterns/SqlToRest/index.tsx b/packages/ui-patterns/SqlToRest/index.tsxindex 7897d034e0e..1e83262f392 100644--- a/packages/ui-patterns/SqlToRest/index.tsx+++ b/packages/ui-patterns/SqlToRest/index.tsx@@ -3,6 +3,7 @@import dynamic from 'next/dynamic.js'import { ErrorBoundary, FallbackProps } from 'react-error-boundary'import { Admonition } from '../admonition'+import { SqlToRestProps } from './sql-to-rest'function FallbackComponent({ error }: FallbackProps) {if (error instanceof Error && error.message === 'WebAssembly is not defined') {@@ -26,10 +27,10 @@ function FallbackComponent({ error }: FallbackProps) {// Lazy load client side to prevent hydration issues when browser produces an errorconst SqlToRest = dynamic(() => import('./sql-to-rest'))-export default function SqlToRestWithFallback() {+export default function SqlToRestWithFallback(props: SqlToRestProps) {return (<ErrorBoundary FallbackComponent={FallbackComponent}>- <SqlToRest />+ <SqlToRest {...props} /></ErrorBoundary>)}