V2 UI fails to show the data for the very first point in charts
[WebKit-https.git] / Websites / perf.webkit.org / public / v2 / data.js
index 5e2e185..665e395 100644 (file)
@@ -477,7 +477,7 @@ TimeSeries.prototype.findPointAfterTime = function (time)
 
 TimeSeries.prototype.seriesBetweenPoints = function (startPoint, endPoint)
 {
-    if (!startPoint.seriesIndex || !endPoint.seriesIndex)
+    if (typeof(startPoint.seriesIndex) != "number" || typeof(endPoint.seriesIndex) != "number")
         return null;
     return this._series.slice(startPoint.seriesIndex, endPoint.seriesIndex + 1);
 }