diff --git a/src/explorer/ApiTreeItem.ts b/src/explorer/ApiTreeItem.ts index 4774d8f..fd371e7 100644 --- a/src/explorer/ApiTreeItem.ts +++ b/src/explorer/ApiTreeItem.ts @@ -102,8 +102,8 @@ export class ApiTreeItem extends AzureParentTreeItem { public async reloadApi(api: ApiContract): Promise { this.apiContract = api; this._name = nonNullProp(api, 'name'); - //this._root = this.createRoot(this.parent, nonNullProp(api, 'name')); this._label = this.getRevisionDisplayName(api); + this._root = this.createRoot(this.root, this._name); this._operationsTreeItem = new ApiOperationsTreeItem(this); this.policyTreeItem = new ApiPolicyTreeItem(this); }