Skip to content

Commit

Permalink
Fix SimpleFormIterator label loses style when value is falsy
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed May 28, 2024
1 parent 852ecf8 commit 51e8a7c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const SimpleFormIteratorItem = React.forwardRef(
return (
<SimpleFormIteratorItemContext.Provider value={context}>
<li className={SimpleFormIteratorClasses.line} ref={ref}>
{label && (
{label != null && (
<Typography
variant="body2"
className={SimpleFormIteratorClasses.index}
Expand Down

0 comments on commit 51e8a7c

Please sign in to comment.