Skip to content

Commit

Permalink
Fix rendering if ConditionalLink has no children (Volto 17) (#5967)
Browse files Browse the repository at this point in the history
  • Loading branch information
pnicolli committed Apr 18, 2024
1 parent 8ffb2e4 commit 85ea1f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/5963.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed rendering if ConditionalLink has no children @pnicolli
2 changes: 1 addition & 1 deletion src/components/manage/ConditionalLink/ConditionalLink.jsx
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 85ea1f8

Please sign in to comment.