fix: ducklake manager table explorer issue

This commit is contained in:
Ruben Fiszel
2025-11-18 00:48:56 +00:00
parent 4e9c22a0bd
commit d08c0916f7
+3 -3
View File
@@ -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'
}