зеркало из https://github.com/mozilla/treeherder.git
Bug 1736811 - Compare View error: Cannot read property 'value' of undefined (#7300)
* Bug 1736811 - Compare View error: Cannot read property 'value' of undefined * Addres PR changes * Address PR changes * Address PR changes
This commit is contained in:
Родитель
bf87a56cfb
Коммит
6e696411e8
|
@ -19,7 +19,9 @@ class CompareView extends React.PureComponent {
|
|||
let timeRange = Math.min(oldTimestamp, newTimestamp);
|
||||
timeRange = Math.round(now - timeRange);
|
||||
const newTimeRange = phTimeRanges.find((time) => timeRange <= time.value);
|
||||
return newTimeRange.value;
|
||||
// data from repository mozilla-inbound it's older than one year, making newTimeRange become undefined and causing an inifite loading loop
|
||||
// this is a temporary solution until mozilla-inbound data will be removed from Perfherder UI
|
||||
return newTimeRange !== undefined ? newTimeRange.value : -1;
|
||||
};
|
||||
|
||||
queryParams = (repository, interval, framework) => ({
|
||||
|
|
Загрузка…
Ссылка в новой задаче