Skip to content

Commit

Permalink
remove map-key error message
Browse files Browse the repository at this point in the history
  • Loading branch information
svetaStrech committed Aug 8, 2023
1 parent b1f19ae commit 8f54177
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 8f54177

Please sign in to comment.