Unreviewed build fixes.
[WebKit-https.git] / Websites / perf.webkit.org / public / v2 / data.js
index f2ee899ab177c14d09f9f602d776702422501a39..a6e4af604c23eef798c08d45f155d7daeb7d62db 100755 (executable)
@@ -173,7 +173,7 @@ Measurement.prototype.formattedRevisions = function (previousMeasurement)
     var formattedRevisions = {};
     for (var repositoryId in revisions) {
         var currentRevision = revisions[repositoryId][0];
-        var previousRevision = previousRevisions ? previousRevisions[repositoryId][0] : null;
+        var previousRevision = previousRevisions && previousRevisions[repositoryId] ? previousRevisions[repositoryId][0] : null;
         var formatttedRevision = Measurement.formatRevisionRange(currentRevision, previousRevision);
         formattedRevisions[repositoryId] = formatttedRevision;
     }