diff --git a/src/components/CreateFormInner.tsx b/src/components/CreateFormInner.tsx index 20497b9..7f99fac 100644 --- a/src/components/CreateFormInner.tsx +++ b/src/components/CreateFormInner.tsx @@ -1,3 +1,4 @@ +import { InnerChat } from '@/components/InnerChat'; import { Form } from '@/models'; import { getFormFromSupabase } from '@/utils'; import { createClientComponentClient } from '@supabase/auth-helpers-nextjs'; @@ -23,7 +24,7 @@ export function CreateFormInner(props: { formId: string; }) { } }); } - }, []); // The empty array ensures this effect runs only once on mount + }, []); return form ? ( ) : ( diff --git a/src/components/InnerChat.tsx b/src/components/InnerChat.tsx index 850ca65..875923e 100644 --- a/src/components/InnerChat.tsx +++ b/src/components/InnerChat.tsx @@ -129,7 +129,7 @@ export function InnerChat(props: { form: Form; supabase: SupabaseClient