Skip to content

Commit 142a46a

Browse files
committed
1.2.1cleanup: Fix Each child in a list should have a unique "key" prop.
1 parent 7495234 commit 142a46a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build/app/view/netcreate/components/NetGraph.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ class NetGraph extends UNISYS.Component {
112112

113113
<div style={{ display: 'inline-block', paddingRight: '2em' }}>KEY:</div>
114114
{nodeTypes.map((type, i) => (
115-
116-
<div className="tooltipAnchor">
117-
<div key={i} style={{ display:'inline-block', paddingRight:'2em', lineHeight:'10px' }}> <div style={{ display:'inline-block',width:'10px',height:'8px',backgroundColor:type.color }}></div>
115+
<div key={i} className="tooltipAnchor">
116+
<div style={{ display: 'inline-block', paddingRight: '2em', lineHeight: '10px' }}>
117+
<div style={{ display: 'inline-block', width: '10px', height: '8px', backgroundColor: type.color }}></div>
118118
&nbsp;{ (type.label==='') ? 'No Type Selected' : type.label }
119119
</div>
120-
<span className="tooltiptextabove">{ (type.label==='') ? 'No Type Selected' : ((type.help != undefined) ? type.help : type.label) }</span>
120+
<span className="tooltiptextabove">{ (type.label==='') ? 'No Type Selected' : type.help || type.label }</span>
121121
</div>
122122
))}
123123

0 commit comments

Comments
 (0)