mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-30 08:16:49 +00:00
fix: ducklake manager table explorer issue
This commit is contained in:
@@ -179,11 +179,11 @@ export async function getDucklakeSchema({
|
||||
args: {}
|
||||
}
|
||||
})
|
||||
const stringified = Array.isArray(result) && result.length && (result?.[0]?.['result'] ?? '[]')
|
||||
const mainSchema = Array.isArray(result) && result.length && (result?.[0]?.['result'] ?? '[]')
|
||||
|
||||
if (!stringified) throw new Error('Failed to get Ducklake schema: ' + JSON.stringify(result))
|
||||
if (!mainSchema) throw new Error('Failed to get Ducklake schema: ' + JSON.stringify(result))
|
||||
let schema: Omit<SQLSchema, 'stringified'> = {
|
||||
schema: { main: JSON.parse(stringified) },
|
||||
schema: { main: mainSchema },
|
||||
publicOnly: true,
|
||||
lang: 'ducklake'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user