diff --git a/react/NestedSelect/ItemRow.jsx b/react/NestedSelect/ItemRow.jsx index c2502a86c7..8e5e857851 100644 --- a/react/NestedSelect/ItemRow.jsx +++ b/react/NestedSelect/ItemRow.jsx @@ -12,7 +12,7 @@ import Typography from '../Typography' const infoStyle = { color: 'var(--secondaryTextColor)' } -const ItemRow = ({ item, onClick, isSelected, radioPosition }) => { +const ItemRow = ({ item, onClick, isSelected, radioPosition, isLast }) => { const { isDesktop } = useBreakpoints() return ( @@ -68,7 +68,7 @@ const ItemRow = ({ item, onClick, isSelected, radioPosition }) => { ? item.action.Component({ item, ...item.action.props }) : null} - + {!isLast && } ) } diff --git a/react/NestedSelect/NestedSelect.jsx b/react/NestedSelect/NestedSelect.jsx index ed663ffc91..4e55046acc 100644 --- a/react/NestedSelect/NestedSelect.jsx +++ b/react/NestedSelect/NestedSelect.jsx @@ -138,24 +138,26 @@ class NestedSelect extends Component { {searchOptions.noDataLabel} ) : ( - searchResult.map(item => ( + searchResult.map((item, index) => ( )) ) ) : ( - children.map(item => ( + children.map((item, index) => ( )) )}