diff --git a/src/components/ConnectionSidebar.tsx b/src/components/ConnectionSidebar.tsx index 61bf1f4..5f777cf 100644 --- a/src/components/ConnectionSidebar.tsx +++ b/src/components/ConnectionSidebar.tsx @@ -164,38 +164,39 @@ const ConnectionSidebar = () => { /> )} - {tableSchemaLoadingState.isLoading ? ( -
- {" "} - {t("common.loading")} -
- ) : ( - tableList.length > 0 && ( -
- { + return { + label: + table.name === "" + ? t("connection.all-tables") + : table.name, + value: table.name, + }; + })} + onValueChange={(tableName) => + handleTableNameSelect(tableName) + } + placeholder={t("connection.select-table") || ""} + /> +
+ ) + ))}