diff --git a/hystrix-dashboard/src/main/webapp/components/hystrixCommand/templates/hystrixCircuit.html b/hystrix-dashboard/src/main/webapp/components/hystrixCommand/templates/hystrixCircuit.html index 4d97f22a4..f9b3b83e5 100644 --- a/hystrix-dashboard/src/main/webapp/components/hystrixCommand/templates/hystrixCircuit.html +++ b/hystrix-dashboard/src/main/webapp/components/hystrixCommand/templates/hystrixCircuit.html @@ -43,7 +43,11 @@ <% } else { /* We have some circuits that are open */ %> - Circuit <%= isCircuitBreakerOpen.toString().replace("true", "Open").replace("false", "Closed") %> + <% if(typeof isCircuitBreakerOpen === 'object' ) { %> + Circuit Open <%= isCircuitBreakerOpen.true %> Closed <%= isCircuitBreakerOpen.false %> + <% } else { %> + Circuit <%= isCircuitBreakerOpen.toString().replace("true", "Open").replace("false", "Closed") %> + <% } %> <% } %> <% } %>