Skip to content

Commit

Permalink
bug: Avoid RelatertInnhold from erroring when empty
Browse files Browse the repository at this point in the history
  • Loading branch information
KenAJoh committed Sep 2, 2024
1 parent 7c5538f commit 1cea314
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type RelatertInnholdProps = {
};

const RelatertInnhold = ({ node }: RelatertInnholdProps) => {
if (!node || node?.lenker?.length === 0) {
if (!node || !node.lenker || node?.lenker?.length === 0) {
return null;
}

Expand Down

0 comments on commit 1cea314

Please sign in to comment.