Skip to content

Commit

Permalink
fix: project update api
Browse files Browse the repository at this point in the history
  • Loading branch information
phamhieu committed Jun 12, 2023
1 parent 1b2361c commit ba852f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions studio/components/interfaces/Settings/General/General.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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) {
Expand Down

0 comments on commit ba852f2

Please sign in to comment.