mirror of
https://github.com/tencentmusic/supersonic.git
synced 2025-12-11 03:58:14 +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) {
|
||||
forward();
|
||||
} else {
|
||||
const { dbName, tableName } = submitForm;
|
||||
const { catalog ,dbName, tableName } = submitForm;
|
||||
const queryParams = {
|
||||
...submitForm,
|
||||
databaseId: databaseId || modelItem?.databaseId || formDatabaseId,
|
||||
@@ -278,7 +278,7 @@ const ModelCreateForm: React.FC<CreateFormProps> = ({
|
||||
modelDetail: {
|
||||
...submitForm,
|
||||
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,
|
||||
sqlVariables: sqlParams,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user