fix: output display

This commit is contained in:
BennyKok
2023-12-21 00:10:21 +08:00
parent df2f18eda9
commit ef3c2e4348
2 changed files with 26 additions and 16 deletions
+2 -1
View File
@@ -22,7 +22,8 @@ export async function RunOutputs({ run_id }: { run_id: string }) {
</TableHeader>
<TableBody>
{outputs?.map((run) => {
const fileName = run.data.images?.[0].filename;
const fileName =
run.data.images?.[0].filename || run.data.files?.[0].filename;
if (!fileName)
return (