Skip to content

Commit

Permalink
Autocomplete in the table browser in SQL lab is broken (#7736)
Browse files Browse the repository at this point in the history
* fix: explicitly provide value and label strings

* fix: spacing
  • Loading branch information
khtruong authored and betodealmeida committed Jun 19, 2019
1 parent 43ea51b commit d1b81e0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion superset/assets/src/components/TableSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,12 @@ export default class TableSelector extends React.PureComponent {
`${encodeURIComponent(schema)}/${encodeURIComponent(substr)}/${forceRefresh}/`);
return SupersetClient.get({ endpoint })
.then(({ json }) => {
const filterOptions = createFilterOptions({ options: json.options });
const filterOptions = createFilterOptions({
options: json.options.map(o => ({
value: o.value.table,
label: o.label,
})),
});
this.setState(() => ({
filterOptions,
tableLoading: false,
Expand Down

0 comments on commit d1b81e0

Please sign in to comment.