mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-12 20:51:48 +00:00
(fix)(headless) fix ModelCreateForm.tsx error (#2214)
This commit is contained in:
@@ -268,7 +268,7 @@ const ModelCreateForm: React.FC<CreateFormProps> = ({
|
|||||||
if (!saveState && currentStep < 1) {
|
if (!saveState && currentStep < 1) {
|
||||||
forward();
|
forward();
|
||||||
} else {
|
} else {
|
||||||
const { dbName, tableName } = submitForm;
|
const { catalog ,dbName, tableName } = submitForm;
|
||||||
const queryParams = {
|
const queryParams = {
|
||||||
...submitForm,
|
...submitForm,
|
||||||
databaseId: databaseId || modelItem?.databaseId || formDatabaseId,
|
databaseId: databaseId || modelItem?.databaseId || formDatabaseId,
|
||||||
@@ -278,7 +278,7 @@ const ModelCreateForm: React.FC<CreateFormProps> = ({
|
|||||||
modelDetail: {
|
modelDetail: {
|
||||||
...submitForm,
|
...submitForm,
|
||||||
queryType: basicInfoFormMode === 'fast' ? 'table_query' : 'sql_query',
|
queryType: basicInfoFormMode === 'fast' ? 'table_query' : 'sql_query',
|
||||||
tableQuery: dbName && tableName ? `${dbName}.${tableName}` : '',
|
tableQuery: catalog && dbName && tableName ? `${catalog}.${dbName}.${tableName}` : (dbName && tableName ? `${dbName}.${tableName}` : ''),
|
||||||
sqlQuery: sql,
|
sqlQuery: sql,
|
||||||
sqlVariables: sqlParams,
|
sqlVariables: sqlParams,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user