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 b776b34 Fix: fix service-selection changing error (#265)
b776b34 is described below
commit b776b34f10a659c1809aa33e6155eac1efd0c458
Author: lunamagic1978 <[email protected]>
AuthorDate: Wed Mar 11 16:06:37 2020 +0800
Fix: fix service-selection changing error (#265)
Fixed topology layout when the service has been changed.
---
src/store/modules/topology/index.ts | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/store/modules/topology/index.ts
b/src/store/modules/topology/index.ts
index 7aa078c..07f6af6 100644
--- a/src/store/modules/topology/index.ts
+++ b/src/store/modules/topology/index.ts
@@ -276,6 +276,8 @@ const actions: ActionTree<State, any> = {
const idsC = calls
.filter((i: any) => i.detectPoints.indexOf('CLIENT') !== -1)
.map((b: any) => b.id);
+ context.commit(types.SET_TOPO_COPY, { calls: [], nodes: [] });
+ context.commit(types.SET_TOPO, { calls: [], nodes: [] });
return graph
.query('queryTopoInfo')
.params({ ...params, ids, idsC, idsS })