Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hoshinotsuyoshi committed Jan 14, 2025
1 parent 363e5fe commit ec6bc14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion frontend/apps/erd-web/app/erd/p/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ export default async function Page({
}
})
if (!res && networkErrorObjects.length === 0)
networkErrorObjects.push({ name: 'NetworkError', message: `Unknown error. ${pleaseCheck}.` })
networkErrorObjects.push({
name: 'NetworkError',
message: `Unknown error. ${pleaseCheck}.`,
})
if (!res || networkErrorObjects.length > 0) {
return (
<ERDViewer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ export const ErrorDisplay: FC<Props> = ({ errors }) => {
<div className={styles.iconWrapper}>
<InfoIcon color="var(--callout-warning-text)" />
</div>
{error.name === 'NetworkError' && <NetworkErrorDisplay errors={errors}/> }
{error.name !== 'NetworkError' && <ParseErrorDisplay errors={errors}/>}
{error.name === 'NetworkError' && (
<NetworkErrorDisplay errors={errors} />
)}
{error.name !== 'NetworkError' && <ParseErrorDisplay errors={errors} />}
</div>
</div>
)
Expand Down

0 comments on commit ec6bc14

Please sign in to comment.