Skip to content

Commit

Permalink
Merge pull request #1213 from memphisdev/ui_enhanecments
Browse files Browse the repository at this point in the history
remove map-key error message
  • Loading branch information
avrhamNeeman authored Aug 8, 2023
2 parents f0dc3c4 + 8f54177 commit f48b555
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,12 @@ const Component = ({ comp, i }) => {
<Popover
overlayInnerStyle={remainingPorstPopInnerStyle}
placement="bottomLeft"
content={comp?.hosts?.slice(1)?.map((host) => {
return <p className="comp-plus-popover">{host}</p>;
content={comp?.hosts?.slice(1)?.map((host, i) => {
return (
<p key={i} className="comp-plus-popover">
{host}
</p>
);
})}
>
<div className="plus-comp">
Expand All @@ -95,9 +99,9 @@ const Component = ({ comp, i }) => {
<Popover
overlayInnerStyle={remainingPorstPopInnerStyle}
placement="bottomLeft"
content={comp?.ports?.slice(1)?.map((port) => {
content={comp?.ports?.slice(1)?.map((port, i) => {
return (
<p className="comp-plus-popover" onClick={handleIconClick}>
<p className="comp-plus-popover" key={i} onClick={handleIconClick}>
{port}
</p>
);
Expand Down

0 comments on commit f48b555

Please sign in to comment.