Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: default state for SqlToRest translator (#33333)

Charis7a940d2a5d2c
diff --git a/packages/ui-patterns/SqlToRest/index.tsx b/packages/ui-patterns/SqlToRest/index.tsx
index 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 error
const SqlToRest = dynamic(() => import('./sql-to-rest'))
-export default function SqlToRestWithFallback() {
+export default function SqlToRestWithFallback(props: SqlToRestProps) {
return (
<ErrorBoundary FallbackComponent={FallbackComponent}>
- <SqlToRest />
+ <SqlToRest {...props} />
</ErrorBoundary>
)
}