The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Cleanup initial values when the form submits (#23182)
Terry Suttonc2e9dfd6e249
diff --git a/apps/studio/components/interfaces/Database/EnumeratedTypes/CreateEnumeratedTypeSidePanel.tsx b/apps/studio/components/interfaces/Database/EnumeratedTypes/CreateEnumeratedTypeSidePanel.tsxindex a52ea05ad7a..03c3602605a 100644--- a/apps/studio/components/interfaces/Database/EnumeratedTypes/CreateEnumeratedTypeSidePanel.tsx+++ b/apps/studio/components/interfaces/Database/EnumeratedTypes/CreateEnumeratedTypeSidePanel.tsx@@ -1,6 +1,6 @@import { zodResolver } from '@hookform/resolvers/zod'import Link from 'next/link'-import { useRef } from 'react'+import { useEffect, useRef } from 'react'import { DragDropContext, Droppable, DroppableProvided } from 'react-beautiful-dnd'import { useFieldArray, useForm } from 'react-hook-form'import toast from 'react-hot-toast'@@ -51,6 +51,10 @@ const CreateEnumeratedTypeSidePanel = ({},})+ useEffect(() => {+ form.reset(initialValues)+ }, [visible])+const FormSchema = z.object({name: z.string()