Skip to content

Commit

Permalink
fix: check for missing author
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Jul 11, 2020
1 parent fbe5f0e commit 20974f7
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions ui/app/src/Container/Container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,25 @@ export const Container: FC = ({ children }) => {
<Box variant="container.container">
<BlocksContainer
author={
<Box variant="container.author">
<Value
label="by"
value={
<Link
href={getDocPath('author', undefined, config?.pages, author)}
>
{author}
</Link>
}
/>
</Box>
author ? (
<Box variant="container.author">
<Value
label="by"
value={
<Link
href={getDocPath(
'author',
undefined,
config?.pages,
author,
)}
>
{author}
</Link>
}
/>
</Box>
) : null
}
>
{children}
Expand Down

0 comments on commit 20974f7

Please sign in to comment.