提交 1e8fa4d7 编写于 作者: I isidor

fixes #16479

上级 576d8e6b
......@@ -72,7 +72,7 @@ export class OutputNameValueElement extends AbstractOutputElement implements deb
}
public get hasChildren(): boolean {
return Object.getOwnPropertyNames(this.valueObj).length > 0;
return isObject(this.valueObj) && Object.getOwnPropertyNames(this.valueObj).length > 0;
}
public getChildren(): TPromise<debug.IExpression[]> {
......
......@@ -40,7 +40,7 @@ export class ReplExpressionsDataSource implements IDataSource {
}
public hasChildren(tree: ITree, element: any): boolean {
return element instanceof Model || (<IExpressionContainer>element).hasChildren || element instanceof OutputNameValueElement;
return element instanceof Model || (<IExpressionContainer>element).hasChildren;
}
public getChildren(tree: ITree, element: any): TPromise<any> {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册