Bug 1573162 - Patch to prevent UI from breaking in Perfherder (#5288)

If more tests are added than colors are provided, show the excess as grey
This commit is contained in:
Sarah Clements 2019-08-16 14:20:15 -07:00 коммит произвёл GitHub
Родитель bb9fd9bb16
Коммит 0fb09c85b1
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -634,7 +634,7 @@ perf.controller('GraphsCtrl', [
series.flotSeries = {
lines: { show: false },
points: { show: series.visible },
color: series.color[1],
color: series.color ? series.color[1] : '#6c757d',
label: series.projectName + ' ' + series.name,
data: map(
seriesData[series.signature],

Просмотреть файл

@ -39,7 +39,7 @@ export class TestContainer extends React.Component {
</span>
<div
className={`${
checked ? series.color[0] : 'border-secondary'
checked && series.color ? series.color[0] : 'border-secondary'
} graph-legend-card p-3`}
>
<p