fix build

This commit is contained in:
BennyKok 2024-01-18 22:52:01 +08:00
parent 8bc6655073
commit e88230997b

View File

@ -25,8 +25,9 @@ export async function RunInputs({
</TableHeader> </TableHeader>
<TableBody> <TableBody>
{Object.entries(run.workflow_inputs).map(([key, data]) => { {Object.entries(run.workflow_inputs).map(([key, data]) => {
let imageUrl; let imageUrl: string | undefined;
try { try {
if (typeof data === "string") {
if (data.startsWith("data:image/")) { if (data.startsWith("data:image/")) {
imageUrl = data; imageUrl = data;
} else { } else {
@ -35,6 +36,7 @@ export async function RunInputs({
imageUrl = data; imageUrl = data;
} }
} }
}
} catch (_) {} } catch (_) {}
return ( return (
<TableRow key={key}> <TableRow key={key}>