set Health value to Status if existent
Check if Health has any value and save it to be displayed. If Health is empty, continue as normal.
This commit is contained in:
parent
8c4004f32d
commit
34137419ed
1 changed files with 5 additions and 1 deletions
|
@ -351,7 +351,11 @@ export class Stack {
|
|||
for (let line of lines) {
|
||||
try {
|
||||
let obj = JSON.parse(line);
|
||||
statusList.set(obj.Service, obj.State);
|
||||
if (obj.Health === "") {
|
||||
+ statusList.set(obj.Service, obj.State);
|
||||
+ } else {
|
||||
+ statusList.set(obj.Service, obj.Health);
|
||||
+ }
|
||||
} catch (e) {
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue