Skip to content

Commit

Permalink
fixes link list length bug
Browse files Browse the repository at this point in the history
is there a reason we are limiting the number of links to 8?
  • Loading branch information
ryansrofe committed Apr 28, 2024
1 parent 36f3f16 commit 81c6f98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widget-src/components/log/AddLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface AddLinkProps {
export const AddLink = ({ changeLog, updateChangeState }: AddLinkProps) => {
return (
<AutoLayout width="fill-parent" horizontalAlignItems="end" verticalAlignItems="center">
{changeLog.links && changeLog.links.length > 7 ? (
{(changeLog.links?.length || 0) + (changeLog.state?.updates?.links?.length || 0) > 7 ? (
<Text
fill={COLOR.greyDark}
lineHeight={FONT.lineHeight.xs}
Expand Down

0 comments on commit 81c6f98

Please sign in to comment.