The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: improve types to prevent casting
Greg Richardson066d287fe872
diff --git a/studio/components/interfaces/Database/Functions/CreateFunction.tsx b/studio/components/interfaces/Database/Functions/CreateFunction.tsxindex e9fa27de85b..285ccd71b5c 100644--- a/studio/components/interfaces/Database/Functions/CreateFunction.tsx+++ b/studio/components/interfaces/Database/Functions/CreateFunction.tsx@@ -120,6 +120,7 @@ interface ICreateFunctionStore {formState: CreateFunctionFormStatemeta: anyschemas: Dictionary<any>[]+ isEditing: booleanonFormChange: (value: { key: string; value: any }) => voidonFormArrayChange: (value: {operation: 'add' | 'delete' | 'update'@@ -732,7 +733,7 @@ const InputConfigParam: FC<InputConfigParamProps> = observer(({ idx, name, value})const InputDefinition: FC = observer(({}) => {- const _localState = useContext(CreateFunctionContext) as CreateFunctionStore+ const _localState = useContext(CreateFunctionContext)return (<div className="space-y-4"><div className="flex flex-col">@@ -740,7 +741,7 @@ const InputDefinition: FC = observer(({}) => {<p className="text-sm text-scale-1100">The language below should be written in `{_localState!.formState.language.value}`.</p>- {!_localState.isEditing && (+ {!_localState?.isEditing && (<p className="text-sm text-scale-1100">Change the language in the Advanced Settings below.</p>