Skip to content

Commit

Permalink
fix: typing and using enter to select the table on sql lab layout (ap…
Browse files Browse the repository at this point in the history
…ache#24028)

(cherry picked from commit 479be86)
  • Loading branch information
Lily Kuang authored and sadpandajoe committed May 12, 2023
1 parent 76639a4 commit b82150f
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 @@ -265,8 +265,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 b82150f

Please sign in to comment.