Skip to content

Commit

Permalink
Fix rendering if ConditionalLink has no children (#5963)
Browse files Browse the repository at this point in the history
  • Loading branch information
pnicolli authored Apr 17, 2024
1 parent 72bc909 commit c664f33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/volto/news/5963.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed rendering if ConditionalLink has no children @pnicolli
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const ConditionalLink = ({ condition, to, item, ...props }) => {
</UniversalLink>
);
} else {
return props.children;
return <>{props.children}</>;
}
};

Expand Down

0 comments on commit c664f33

Please sign in to comment.