The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: hide copy about Advanced Settings when editing Database Function
Brandon Scott19d112a06c8a
diff --git a/studio/components/interfaces/Database/Functions/CreateFunction.tsx b/studio/components/interfaces/Database/Functions/CreateFunction.tsxindex 80e780b289a..e9fa27de85b 100644--- a/studio/components/interfaces/Database/Functions/CreateFunction.tsx+++ b/studio/components/interfaces/Database/Functions/CreateFunction.tsx@@ -732,7 +732,7 @@ const InputConfigParam: FC<InputConfigParamProps> = observer(({ idx, name, value})const InputDefinition: FC = observer(({}) => {- const _localState = useContext(CreateFunctionContext)+ const _localState = useContext(CreateFunctionContext) as CreateFunctionStorereturn (<div className="space-y-4"><div className="flex flex-col">@@ -740,9 +740,11 @@ const InputDefinition: FC = observer(({}) => {<p className="text-sm text-scale-1100">The language below should be written in `{_localState!.formState.language.value}`.</p>- <p className="text-sm text-scale-1100">- Change the language in the Advanced Settings below.- </p>+ {!_localState.isEditing && (+ <p className="text-sm text-scale-1100">+ Change the language in the Advanced Settings below.+ </p>+ )}</div><div className="h-40 border dark:border-dark"><SqlEditor