[JENKINS-36618] actually fix the bug by using the self.href as the unique key
This commit is contained in:
parent
c1d7e4ca2e
commit
cfd82f0613
|
@ -62,12 +62,15 @@ export default class Pipelines extends Component {
|
|||
headers={headers}
|
||||
>
|
||||
{ pipelineRecords
|
||||
.map(pipeline => (
|
||||
<PipelineRowItem
|
||||
key={pipeline.name} pipeline={pipeline}
|
||||
showOrganization={!organization}
|
||||
/>
|
||||
))
|
||||
.map(pipeline => {
|
||||
const key = pipeline._links.self.href;
|
||||
return (
|
||||
<PipelineRowItem
|
||||
key={key} pipeline={pipeline}
|
||||
showOrganization={!organization}
|
||||
/>
|
||||
);
|
||||
})
|
||||
}
|
||||
</Table>
|
||||
</article>
|
||||
|
|
|
@ -5,6 +5,7 @@ since we would return a function, */
|
|||
const { Record } = Immutable;
|
||||
export class PipelineRecord extends Record({
|
||||
_class: null,
|
||||
_links: null,
|
||||
branchNames: null,
|
||||
displayName: '',
|
||||
estimatedDurationInMillis: 0,
|
||||
|
|
Loading…
Reference in New Issue