From 6a8e06ad24c20fd69df03d2940467da498f36bbd Mon Sep 17 00:00:00 2001 From: CorrectRoadH Date: Thu, 1 Jun 2023 16:21:23 +0800 Subject: [PATCH] fix: always jump to bottom when scroll (#118) * fix: error jump when scroll * fix: Cycle deps * deleted unused code --- src/components/ConnectionSidebar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ConnectionSidebar.tsx b/src/components/ConnectionSidebar.tsx index b538fa0..cdb045c 100644 --- a/src/components/ConnectionSidebar.tsx +++ b/src/components/ConnectionSidebar.tsx @@ -111,7 +111,7 @@ const ConnectionSidebar = () => { } else { conversationStore.updateSelectedSchemaName(""); } - }, [connectionStore, hasSchemaProperty, currentConnectionCtx, schemaList]); + }, [connectionStore, hasSchemaProperty, currentConnectionCtx]); useEffect(() => { const tableList = schemaList.find((schema) => schema.name === selectedSchemaName)?.tables || [];