Skip to content

Commit 0db7ce8

Browse files
committed
fix
1 parent eb6ff0f commit 0db7ce8

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

web/src/components/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ function Show({ value, Key, props }: { value: any, props: AppProps, Key?: string
244244
</a>
245245
);
246246
}
247-
return <span className="block">{value}</span>;
247+
return <span className="block">{typeof (value) == "object" ? JSON.stringify(value, null, 2) : value}</span>;
248248
}
249249
}
250250

web/src/components/formula-links.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ interface Props {
1414
const FormulaLinks = ({ webpage_url, family, name, arch, repo, download_url }: Props) => {
1515
const jsonApiUrl = `${webpage_url}/raw.json`;
1616

17-
const downloadUrl = new URL(`/dl/${repo}/${arch.toLowerCase()}/${family}/${name}/raw.dl`, window.location.origin);
17+
const ar = !Array.isArray(arch) ? arch : "linux";
18+
const downloadUrl = new URL(`/dl/${repo}/${ar.toLowerCase()}/${family}/${name}/raw.dl`, window.location.origin);
1819

1920
return (
2021
<div className="grid gap-3 p-4 bg-blue-50/30 dark:bg-blue-950/30 rounded-lg border border-blue-100 dark:border-blue-900">

0 commit comments

Comments
 (0)