Skip to content

Commit 7ce9ae4

Browse files
author
Keivan Vosoughi
committed
Test
1 parent eefe2be commit 7ce9ae4

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

app/client/src/pages/DataGenerator/Configure.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

app/client/src/pages/DataGenerator/Examples.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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 />}

app/client/src/pages/DataGenerator/FreeFormExampleTable.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ interface Props {
4848
const 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)) {

0 commit comments

Comments
 (0)