File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
app/client/src/pages/DataGenerator Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,9 @@ const Configure: FunctionComponent = () => {
9494 // set model providers
9595 // set model ids
9696 console . log ( 'useEffect' , formData ) ;
97+ if ( formData && formData ?. inference_type === ModelProviderType . OPENAI && isEmpty ( generate_file_name ) ) {
98+ form . setFieldValue ( 'inference_type' , ModelProviders . OPENAI ) ;
99+ }
97100
98101 } , [ customModels , formData ] ) ;
99102
Original file line number Diff line number Diff line change @@ -132,12 +132,13 @@ const Examples: FunctionComponent = () => {
132132 } ;
133133
134134 const showEmptyState = ( workflowType === WorkflowType . FREE_FORM_DATA_GENERATION &&
135- isEmpty ( mutation . data ) &&
135+ isEmpty ( mutation . data ) && Array . isArray ( records ) &&
136136 records . length === 0 ) ||
137137 ( form . getFieldValue ( 'use_case' ) === 'custom' &&
138138 isEmpty ( form . getFieldValue ( 'examples' ) ) ) ;
139139
140140
141+ console . log ( 'records' , records ) ;
141142 return (
142143 < Container >
143144 { mutation ?. isPending || restore_mutation . isPending && < Loading /> }
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ interface Props {
4848const FreeFormExampleTable : FunctionComponent < Props > = ( { data } ) => {
4949 const [ colDefs , setColDefs ] = useState ( [ ] ) ;
5050 const [ rowData , setRowData ] = useState ( [ ] ) ;
51+ console . log ( 'FreeFormExampleTable' , data ) ;
5152
5253 useEffect ( ( ) => {
5354 if ( ! isEmpty ( data ) ) {
You can’t perform that action at this time.
0 commit comments