Skip to content

Commit

Permalink
Fix benchmarks page when there's only a single version (#5376)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh authored and anandthakker committed Sep 30, 2017
1 parent 9326fb9 commit 78a6852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/benchmarks_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ class BenchmarkRow extends React.Component {
{this.renderStatistic('(20% trimmed) Mean',
(version) => <p>
{formatSample(version.summary.trimmedMean)} ms
{version.name === current.name && change}
{current && version.name === current.name && change}
</p>)}
{this.renderStatistic('(Windsorized) Deviation',
(version) => <p>{formatSample(version.summary.windsorizedDeviation)} ms</p>)}
Expand Down

0 comments on commit 78a6852

Please sign in to comment.