提交 75c27c16 编写于 作者: J Joao Moreno

fix npe

上级 047f55b3
......@@ -828,7 +828,7 @@ export class Controller extends treedefaults.DefaultController {
}
private canSelect(tree: tree.ITree, ...elements: any[]): boolean {
if (elements.some(e => e instanceof gitmodel.StatusGroup)) {
if (elements.some(e => e instanceof gitmodel.StatusGroup || e instanceof gitmodel.StatusModel)) {
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册