Minor fix

This commit is contained in:
TwinProduction 2021-01-31 16:47:40 -05:00
parent 431fb3e9f2
commit 688456d7cf

View File

@ -104,7 +104,7 @@ export default {
} else {
let nextEvent = data.events[i+1];
if (event.type === 'HEALTHY') {
event.fancyText = 'Service became healthy again';
event.fancyText = 'Service became healthy';
} else if (event.type === 'UNHEALTHY') {
if (nextEvent) {
event.fancyText = 'Service was unhealthy for ' + this.prettifyTimeDifference(nextEvent.timestamp, event.timestamp);