Skip to content

Commit

Permalink
fix: missing last item
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Feb 21, 2021
1 parent fba9b04 commit e5a32ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/blocks/src/TagsList/TagsList.tsx
Expand Up @@ -62,7 +62,7 @@ export const TagsList: FC<TagsListProps & Omit<TagProps, 'color' | 'raw'>> = ({
maxWidth: largerThanLimit ? 'unset' : undefined,
}}
>
{tags.slice(0, limit).map((tag, index) => {
{tags.slice(0, limit > 0 ? limit : undefined).map((tag, index) => {
const rawTag = raw ? raw[index] : undefined;
return (
<Link key={tag} href={getDocPath('tags', undefined, store, tag)}>
Expand Down

0 comments on commit e5a32ff

Please sign in to comment.