Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
Changed webpack-serve filename in eslintignore file. Fixed a few more…
Browse files Browse the repository at this point in the history
… issues in ExperimentCard component.
  • Loading branch information
Monica Jianu committed Sep 17, 2018
1 parent 193ce56 commit db81bf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
webpack.config.js
webpack-serve.config.js
serve.config.js
coverage/
__mocks__/
lib/
Expand Down
6 changes: 3 additions & 3 deletions html/ExperimentCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class ExperimentCard extends React.Component {
descriptionShown: truncate(this.props.longDescription)
}

this.setExpanded = this._setExpanded.bind(this);
this.setExpanded = this._setExpanded.bind(this)
}

_setExpanded() {
Expand All @@ -59,11 +59,11 @@ class ExperimentCard extends React.Component {
const {expanded, descriptionShown} = this.state

const markerGeneLinks = markerGenes && markerGenes.map((markerGene) => {
return <li><a href={markerGene.url}>View marker gene in clusters {markerGene.clusterIds.sort().join(', ')} for k = {markerGene.k}</a></li>
return <li key={`marker-${markerGene.k}`}><a href={markerGene.url}>View marker gene in clusters {markerGene.clusterIds.sort().join(`, `)} for k = {markerGene.k}</a></li>
})
return (
<ExperimentCardDiv>
<span className={"label"}>
<span className={`label`}>
{lastUpdated} | <i>{species}</i>
</span>
<h5>
Expand Down

0 comments on commit db81bf0

Please sign in to comment.