Skip to content

Commit 775038f

Browse files
Merge pull request #15701 from cajieh/endpointlist-components-each-child-warning
OCPBUGS-64851: EndpointList components Warning: Each child in a list should have a …
2 parents 7171dc7 + 9a5e7b4 commit 775038f

File tree

1 file changed

+1
-1
lines changed
  • frontend/packages/operator-lifecycle-manager/src/components/descriptors/spec

1 file changed

+1
-1
lines changed

frontend/packages/operator-lifecycle-manager/src/components/descriptors/spec/endpoint.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const EndpointList: React.FC<EndpointListProps> = (props) => {
4545
</Thead>
4646
<Tbody>
4747
{props.endpoints ? (
48-
props.endpoints.map((e) => <EndpointRow endpoint={e} key={e.port} />)
48+
props.endpoints.map((e) => <EndpointRow endpoint={e} key={`${e.port}-${e.interval}`} />)
4949
) : (
5050
<span className="pf-v6-u-text-color-subtle">{t('No endpoints')}</span>
5151
)}

0 commit comments

Comments
 (0)