@@ -65,14 +65,6 @@ export const ObjectForm: React.FC<ObjectFormProps> = ({
6565 const [ loading , setLoading ] = useState ( true ) ;
6666 const [ error , setError ] = useState < Error | null > ( null ) ;
6767
68- // Track component lifecycle
69- useEffect ( ( ) => {
70- console . log ( '[ObjectForm] MOUNT - objectName:' , schema . objectName , 'hasDataSource:' , ! ! dataSource ) ;
71- return ( ) => {
72- console . log ( '[ObjectForm] UNMOUNT - objectName:' , schema . objectName ) ;
73- } ;
74- } , [ ] ) ;
75-
7668 // Check if using inline fields (fields defined as objects, not just names)
7769 const hasInlineFields = schema . customFields && schema . customFields . length > 0 ;
7870
@@ -91,12 +83,9 @@ export const ObjectForm: React.FC<ObjectFormProps> = ({
9183 if ( ! dataSource ) {
9284 throw new Error ( 'DataSource is required when using ObjectQL schema fetching (inline fields not provided)' ) ;
9385 }
94- console . log ( '[ObjectForm] Fetching object schema for:' , schema . objectName ) ;
9586 const schemaData = await dataSource . getObjectSchema ( schema . objectName ) ;
96- console . log ( '[ObjectForm] Got schema data:' , schemaData ?. name , 'fields count:' , Object . keys ( schemaData ?. fields || { } ) . length ) ;
9787 setObjectSchema ( schemaData ) ;
9888 } catch ( err ) {
99- console . error ( '[ObjectForm] Failed to fetch object schema:' , err ) ;
10089 setError ( err as Error ) ;
10190 }
10291 } ;
@@ -279,7 +268,6 @@ export const ObjectForm: React.FC<ObjectFormProps> = ({
279268 }
280269 } ) ;
281270
282- console . log ( '[ObjectForm] Generated fields:' , generatedFields . length , 'for objectSchema:' , objectSchema ?. name ) ;
283271 setFormFields ( generatedFields ) ;
284272 setLoading ( false ) ;
285273 } , [ objectSchema , schema . fields , schema . customFields , schema . readOnly , schema . mode , hasInlineFields ] ) ;
@@ -375,7 +363,6 @@ export const ObjectForm: React.FC<ObjectFormProps> = ({
375363 }
376364
377365 // Render loading state
378- console . log ( '[ObjectForm] Render check - loading:' , loading , 'formFields:' , formFields . length , 'objectSchema:' , ! ! objectSchema , 'error:' , ! ! error ) ;
379366 if ( loading ) {
380367 return (
381368 < div className = "p-8 text-center" >
0 commit comments