fix: show table list only if it’s bound with a connection

This commit is contained in:
Tianzhou Chen
2023-05-05 23:17:42 +08:00
parent 691edcca2a
commit ab80b67521

View File

@ -164,7 +164,8 @@ const ConnectionSidebar = () => {
/>
</div>
)}
{tableSchemaLoadingState.isLoading ? (
{currentConnectionCtx &&
(tableSchemaLoadingState.isLoading ? (
<div className="w-full h-12 flex flex-row justify-start items-center px-4 sticky top-0 border z-1 mb-4 mt-2 rounded-lg text-sm text-gray-600 dark:text-gray-400">
<Icon.BiLoaderAlt className="w-4 h-auto animate-spin mr-1" />{" "}
{t("common.loading")}
@ -195,7 +196,7 @@ const ConnectionSidebar = () => {
/>
</div>
)
)}
))}
<ConversationList />
</div>
<div className="sticky bottom-0 w-full flex flex-col justify-center bg-gray-100 dark:bg-zinc-700 backdrop-blur bg-opacity-60 pb-4 py-2">