You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@helix.apache.org by jx...@apache.org on 2018/08/18 00:20:04 UTC

[04/14] helix git commit: Fix issue sometimes not able to delete map config items

Fix issue sometimes not able to delete map config items


Project: http://git-wip-us.apache.org/repos/asf/helix/repo
Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/12f24c5c
Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/12f24c5c
Diff: http://git-wip-us.apache.org/repos/asf/helix/diff/12f24c5c

Branch: refs/heads/master
Commit: 12f24c5cf388f28aabf6ed5bbf635639ae9d6741
Parents: 4739d4a
Author: Vivo Xu <vx...@linkedin.com>
Authored: Tue Feb 20 13:51:03 2018 -0800
Committer: Vivo Xu <vx...@linkedin.com>
Committed: Wed Aug 8 15:31:35 2018 -0700

----------------------------------------------------------------------
 helix-front/client/app/shared/node-viewer/node-viewer.component.ts | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/helix/blob/12f24c5c/helix-front/client/app/shared/node-viewer/node-viewer.component.ts
----------------------------------------------------------------------
diff --git a/helix-front/client/app/shared/node-viewer/node-viewer.component.ts b/helix-front/client/app/shared/node-viewer/node-viewer.component.ts
index 316cbbf..1d52b99 100644
--- a/helix-front/client/app/shared/node-viewer/node-viewer.component.ts
+++ b/helix-front/client/app/shared/node-viewer/node-viewer.component.ts
@@ -284,6 +284,8 @@ export class NodeViewerComponent implements OnInit {
         if (key) {
           // have to fetch all other configs under this key
           const entry = _.find(this.node.mapFields, {'name': key});
+          newNode.mapFields =  [{ name: key, value: [] }];
+
           _.forEach(entry.value, (item: any) => {
             if (item.name === row.name) {
               if (!isDeleting) {