mirror of
https://github.com/hyperdxio/hyperdx
synced 2026-04-21 13:37:15 +00:00
fix: Properly fetch tables in source edit dropdown when new connection is selected (#1067)
This commit is contained in:
parent
c0b188c1c5
commit
9cd9bfb812
2 changed files with 6 additions and 1 deletions
5
.changeset/witty-tomatoes-type.md
Normal file
5
.changeset/witty-tomatoes-type.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@hyperdx/app": patch
|
||||
---
|
||||
|
||||
fix: Properly fetch tables in source edit dropdown when new connection is selected
|
||||
|
|
@ -66,7 +66,7 @@ export function useTablesDirect(
|
|||
) {
|
||||
const clickhouseClient = getClickhouseClient();
|
||||
return useQuery<ResponseJSON<ColumnMeta>, Error>({
|
||||
queryKey: [`direct_datasources/databases/${database}/tables`],
|
||||
queryKey: [`direct_datasources/databases/${database}/tables`, connectionId],
|
||||
queryFn: async () => {
|
||||
const paramSql = chSql`SHOW TABLES FROM ${{ Identifier: database }}`;
|
||||
const json = await clickhouseClient
|
||||
|
|
|
|||
Loading…
Reference in a new issue