More Azure strict nulls (#20614)

This commit is contained in:
Charles Gagnon
2022-09-16 11:43:24 -07:00
committed by GitHub
parent 2a3d0bcde5
commit c2c16c99e8
17 changed files with 46 additions and 40 deletions

View File

@@ -60,20 +60,20 @@ export class AzureResourceResourceTreeNode extends TreeNode {
const treeItem = this.resourceNodeWithProviderId.resourceNode.treeItem;
return {
label: <any>treeItem.label,
label: typeof treeItem.label === 'object' ? treeItem.label.label : treeItem.label || '',
isLeaf: treeItem.collapsibleState === TreeItemCollapsibleState.None ? true : false,
errorMessage: undefined,
metadata: undefined,
nodePath: this.generateNodePath(),
nodeStatus: undefined,
nodeType: treeItem.contextValue,
nodeType: treeItem.contextValue || '',
nodeSubType: undefined,
iconType: treeItem.contextValue
};
}
public get nodePathValue(): string {
return this.resourceNodeWithProviderId.resourceNode.treeItem.id;
return this.resourceNodeWithProviderId.resourceNode.treeItem.id || '';
}
}