Skip to content

Commit

Permalink
fix: typing and using enter to select the table on sql lab layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Lily Kuang committed May 11, 2023
1 parent 7a55625 commit 47b09f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset-frontend/src/components/TableSelector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ const TableSelector: FunctionComponent<TableSelectorProps> = ({
const handleFilterOption = useMemo(
() => (search: string, option: TableOption) => {
const searchValue = search.trim().toLowerCase();
const { text } = option;
return text.toLowerCase().includes(searchValue);
const { value } = option;
return value.toLowerCase().includes(searchValue);
},
[],
);
Expand Down

0 comments on commit 47b09f6

Please sign in to comment.