fix: typing and using enter to select the table on sql lab layout (#24028)

This commit is contained in:
Lily Kuang 2023-05-11 16:05:58 -07:00 committed by GitHub
parent 7a55625243
commit 479be86596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);
},
[],
);