fix: save columns reference from sqllab save datasets flow (#24248)

This commit is contained in:
Hugh A. Miles II
2023-06-20 13:54:19 -04:00
committed by GitHub
parent fdef9cbc96
commit 93e1db4bd9
37 changed files with 489 additions and 202 deletions

View File

@@ -174,7 +174,6 @@ class SaveModal extends React.Component<SaveModalProps, SaveModalState> {
if (this.props.datasource?.type === DatasourceType.Query) {
const { schema, sql, database } = this.props.datasource;
const { templateParams } = this.props.datasource;
const columns = this.props.datasource?.columns || [];
await this.props.actions.saveDataset({
schema,
@@ -182,7 +181,6 @@ class SaveModal extends React.Component<SaveModalProps, SaveModalState> {
database,
templateParams,
datasourceName: this.state.datasetName,
columns,
});
}