Skip to content

Commit

Permalink
set reference to columns properly
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh authored Jul 18, 2022
1 parent 5990ea6 commit fd5c798
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions superset-frontend/src/SqlLab/components/ResultSet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,12 @@ export default class ResultSet extends React.PureComponent<
const { query } = this.props;

const datasource: ISaveableDatasource = {
columns: query.columns as ISimpleColumn[],
columns: query.results.columns as ISimpleColumn[],
name: query?.tab || 'Untitled',
dbId: 1,
sql: query.sql,
templateParams: query.templateParams,
schema: query.schema,
dbId: query?.dbId,
sql: query?.sql,
templateParams: query?.templateParams,
schema: query?.schema,
};

return (
Expand Down

0 comments on commit fd5c798

Please sign in to comment.