Skip to content

Commit

Permalink
πŸ€– Refactor(hub): μ‚¬μš©ν•˜μ§€ μ•ŠλŠ” μ½”λ“œ μ‚­μ œ
Browse files Browse the repository at this point in the history
  • Loading branch information
paulcjy committed Dec 3, 2024
1 parent ff7c3ab commit 836cc71
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions apps/hub/src/app/architectures/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { StarIcon } from '@/ui/StarIcon';
import { Tag } from '@/ui/Tag';
import { fetcher } from '@/utils/fetcher';
import { useParams } from 'next/navigation';
import { useState } from 'react';
import useSWR from 'swr';

interface PublicArchitecture {
Expand All @@ -35,10 +34,7 @@ export default function ArchitectureDetailPage() {
);

if (isLoading) return <LoadingSpinner />;
if (error) {
// return <div>{JSON.stringify(error)}</div>;
return <ErrorMessage message={(error as Error).message} />;
}
if (error) return <ErrorMessage message={(error as Error).message} />;

const {
title,
Expand Down

0 comments on commit 836cc71

Please sign in to comment.