mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-08-02 05:59:33 +08:00
fix: always jump to bottom when scroll (#118)
* fix: error jump when scroll * fix: Cycle deps * deleted unused code
This commit is contained in:
@ -111,7 +111,7 @@ const ConnectionSidebar = () => {
|
|||||||
} else {
|
} else {
|
||||||
conversationStore.updateSelectedSchemaName("");
|
conversationStore.updateSelectedSchemaName("");
|
||||||
}
|
}
|
||||||
}, [connectionStore, hasSchemaProperty, currentConnectionCtx, schemaList]);
|
}, [connectionStore, hasSchemaProperty, currentConnectionCtx]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const tableList = schemaList.find((schema) => schema.name === selectedSchemaName)?.tables || [];
|
const tableList = schemaList.find((schema) => schema.name === selectedSchemaName)?.tables || [];
|
||||||
|
Reference in New Issue
Block a user