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 <[email protected]> Authored: Tue Feb 20 13:51:03 2018 -0800 Committer: Vivo Xu <[email protected]> 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) {
