Skip to content

Commit

Permalink
dont update current node but just the children
Browse files Browse the repository at this point in the history
  • Loading branch information
abist committed Jan 16, 2020
1 parent 570e554 commit debc994
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/objectExplorer/objectExplorerService.ts
Expand Up @@ -135,8 +135,8 @@ export class ObjectExplorerService {
const credentials = self._sessionIdToConnectionCredentialsMap.get(result.sessionId);
const children = result.nodes.map(node => TreeNodeInfo.fromNodeInfo(node, result.sessionId,
self._currentNode, credentials));
self._currentNode = self._rootTreeNodeArray.find(n => n.nodePath === result.nodePath);
self._treeNodeToChildrenMap.set(self._currentNode, children);
let parentNode = self._rootTreeNodeArray.find(n => n.nodePath === result.nodePath);
self._treeNodeToChildrenMap.set(parentNode, children);
const expandParams: ExpandParams = {
sessionId: result.sessionId,
nodePath: result.nodePath
Expand Down

0 comments on commit debc994

Please sign in to comment.