diff --git a/src/components/GenerationListItem.svelte b/src/components/GenerationListItem.svelte
index deb358f..f8503d4 100644
--- a/src/components/GenerationListItem.svelte
+++ b/src/components/GenerationListItem.svelte
@@ -6,17 +6,20 @@
let outputFormat: CADFormat = 'gltf'
console.log(data)
- let output = ''
+ let output: string | undefined = ''
// Outputs will only be set if the model has completed processing.
if (data.outputs) {
for (const [key, value] of Object.entries(data.outputs)) {
if (key.endsWith('gltf')) {
- output = value
+ output = value as string | undefined
}
}
}
$: dataUrl = `data:text/${outputFormat};base64,${output}`
+
+ const gltfUrl = `data:application/json;base64,${data.outputs ? data.outputs['source.gltf'] : ''}`
+ console.log('gltfUrl', gltfUrl)