Revert "Autocomplete in the table browser in SQL lab is broken (#7736)" (#7743)

* Revert "Autocomplete in the table browser in SQL lab is broken (#7736)"

This reverts commit d1b81e04ac.

* Kick off build
This commit is contained in:
Kim Truong 2019-06-20 19:47:39 -07:00 committed by Beto Dealmeida
parent d1b81e04ac
commit 17c4b72183
1 changed files with 1 additions and 6 deletions

View File

@ -130,12 +130,7 @@ export default class TableSelector extends React.PureComponent {
`${encodeURIComponent(schema)}/${encodeURIComponent(substr)}/${forceRefresh}/`);
return SupersetClient.get({ endpoint })
.then(({ json }) => {
const filterOptions = createFilterOptions({
options: json.options.map(o => ({
value: o.value.table,
label: o.label,
})),
});
const filterOptions = createFilterOptions({ options: json.options });
this.setState(() => ({
filterOptions,
tableLoading: false,