Fix the bug that sometimes analysis task results pane is missing.
[WebKit.git] / Websites / perf.webkit.org / public / v3 / components / analysis-results-viewer.js
index d72c5e59f868589251052affa3e5aed57e825571..ecd6e2f4506d240e71583a16b6de6cc97409f1e1 100644 (file)
@@ -62,6 +62,8 @@ class AnalysisResultsViewer extends ResultsTable {
 
         for (const label of this._rangeSelectorLabels) {
             const commitSet = this._selectedRange[label];
 
         for (const label of this._rangeSelectorLabels) {
             const commitSet = this._selectedRange[label];
+            if (!commitSet)
+                continue;
             const list = this._selectorRadioButtonList[label] || [];
             for (const item of list) {
                 if (item.commitSet.equals(commitSet))
             const list = this._selectorRadioButtonList[label] || [];
             for (const item of list) {
                 if (item.commitSet.equals(commitSet))