This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-rocketbot-ui.git


The following commit(s) were added to refs/heads/master by this push:
     new 5b0c525  fix "undefined" error in topology/index.ts (#132)
5b0c525 is described below

commit 5b0c52566b88dca8a45ccbe0ee2682786cb3ad43
Author: wuguangkuo <[email protected]>
AuthorDate: Tue Aug 13 19:52:42 2019 +0800

    fix "undefined" error in topology/index.ts (#132)
    
    * fix topology page js bug
    
    * avoid js "undefined" error in topology page
    
    * fix "undefined" error in topology/index.ts
---
 src/store/modules/topology/index.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/store/modules/topology/index.ts 
b/src/store/modules/topology/index.ts
index a18042f..0dd594f 100644
--- a/src/store/modules/topology/index.ts
+++ b/src/store/modules/topology/index.ts
@@ -174,7 +174,7 @@ const actions: ActionTree<State, any> = {
                   ...nodes[j],
                   sla: resInfo.sla.values[i].value ? 
resInfo.sla.values[i].value / 100 : -1,
                   cpm: resInfo.nodeCpm.values[i] ? 
resInfo.nodeCpm.values[i].value : -1,
-                  latency: resInfo.nodeLatency.values ? 
resInfo.nodeLatency.values[i].value : -1,
+                  latency: resInfo.nodeLatency.values[i] ? 
resInfo.nodeLatency.values[i].value : -1,
                   p50: resInfo.p50 && resInfo.p50.values[i] ? 
resInfo.p50.values[i].value : 0,
                   p75: resInfo.p75 && resInfo.p75.values[i] ? 
resInfo.p75.values[i].value : 0,
                   p90: resInfo.p90 && resInfo.p90.values[i] ? 
resInfo.p90.values[i].value : 0,

Reply via email to