The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: project update api
phamhieuba852f289811
diff --git a/studio/components/interfaces/Settings/General/General.tsx b/studio/components/interfaces/Settings/General/General.tsxindex f7fc98356d1..2fce9ce289b 100644--- a/studio/components/interfaces/Settings/General/General.tsx+++ b/studio/components/interfaces/Settings/General/General.tsx@@ -4,7 +4,7 @@ import { PermissionAction } from '@supabase/shared-types/out/constants'import { useStore, checkPermissions } from 'hooks'import { API_URL } from 'lib/constants'-import { post } from 'lib/common/fetch'+import { patch } from 'lib/common/fetch'import {FormHeader,FormPanel,@@ -25,7 +25,7 @@ const General: FC<Props> = ({}) => {const canUpdateProject = checkPermissions(PermissionAction.UPDATE, 'projects')const onSubmit = async (values: any, { resetForm }: any) => {- const response = await post(`${API_URL}/projects/${project?.ref}/update`, {+ const response = await patch(`${API_URL}/projects/${project?.ref}`, {name: values.name.trim(),})if (response.error) {