From 479be865969f2b3ed1c8ea03890c9ed1fe324b38 Mon Sep 17 00:00:00 2001 From: Lily Kuang Date: Thu, 11 May 2023 16:05:58 -0700 Subject: [PATCH] fix: typing and using enter to select the table on sql lab layout (#24028) --- superset-frontend/src/components/TableSelector/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superset-frontend/src/components/TableSelector/index.tsx b/superset-frontend/src/components/TableSelector/index.tsx index f2a06c56b2..6fcbdb3a57 100644 --- a/superset-frontend/src/components/TableSelector/index.tsx +++ b/superset-frontend/src/components/TableSelector/index.tsx @@ -264,8 +264,8 @@ const TableSelector: FunctionComponent = ({ 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); }, [], );