mirror of
https://github.com/apache/superset.git
synced 2026-04-24 10:35:01 +00:00
chore: migrate sqllab_viz endpoint to api v1 (#23729)
This commit is contained in:
@@ -300,10 +300,10 @@ export const SaveDatasetModal = ({
|
||||
columns: selectedColumns,
|
||||
}),
|
||||
)
|
||||
.then((data: { table_id: number }) =>
|
||||
postFormData(data.table_id, 'table', {
|
||||
.then((data: { id: number }) =>
|
||||
postFormData(data.id, 'table', {
|
||||
...formDataWithDefaults,
|
||||
datasource: `${data.table_id}__table`,
|
||||
datasource: `${data.id}__table`,
|
||||
...(defaultVizType === 'table' && {
|
||||
all_columns: selectedColumns.map(column => column.column_name),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user