fix: Columns not passing properly from SQL Lab to Explore (#20975)

* debugging columns

* Clean up code

* Fix test
This commit is contained in:
Lyndsi Kay Williams
2022-08-04 13:59:50 -05:00
committed by GitHub
parent 755f654cc6
commit d42cf4e4c9
4 changed files with 9 additions and 5 deletions

View File

@@ -721,7 +721,10 @@ class SqlEditor extends React.PureComponent {
<div className="rightItems">
<span>
<SaveQuery
query={qe}
query={{
...qe,
columns: this.props.latestQuery?.results?.columns || [],
}}
defaultLabel={qe.name || qe.description}
onSave={this.saveQuery}
onUpdate={this.props.actions.updateSavedQuery}