提交 9c6b628e 编写于 作者: J Joao Moreno

null checks

上级 201d3e75
......@@ -241,7 +241,7 @@ export class DataTree<T extends NonNullable<any>, TFilterData = void> implements
getSelection(): T[] {
const nodes = this.tree.getSelection();
return nodes.map(n => n.element);
return nodes.map(n => n.element!);
}
setFocus(elements: T[], browserEvent?: UIEvent): void {
......@@ -275,7 +275,7 @@ export class DataTree<T extends NonNullable<any>, TFilterData = void> implements
getFocus(): T[] {
const nodes = this.tree.getFocus();
return nodes.map(n => n.element);
return nodes.map(n => n.element!);
}
open(elements: T[]): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册