Skip to content

Commit

Permalink
fix error when npm build
Browse files Browse the repository at this point in the history
  • Loading branch information
silentnoname committed Aug 30, 2024
1 parent cf290df commit e199019
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/app/[appID]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ const UrlList: React.FC<{ deployment: DeploymentRecord }> = ({ deployment }) =>
const urlAttribute = deployment.attributes.find(attr => attr.key === 'url');
if (urlAttribute && urlAttribute.value.string) {
const urls = urlAttribute.value.string.split(',');
const initialStatuses = Object.fromEntries(urls.map(url => [url, 'checking']));
const initialStatuses: Record<string, "checking" | "available" | "unavailable"> =
Object.fromEntries(urls.map(url => [url, 'checking' as const]));
setUrlStatuses(initialStatuses);

for (const url of urls) {
Expand Down

0 comments on commit e199019

Please sign in to comment.