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

fixes #67860

上级 3d9fbfeb
......@@ -412,8 +412,8 @@ export class AsyncDataTree<TInput, T, TFilterData = void> implements IDisposable
await this.refreshAndRenderNode(this.getDataNode(element), recursive, ChildrenResolutionReason.Refresh, viewStateContext);
}
hasNode(element: T): boolean {
return this.nodes.has(element);
hasNode(element: TInput | T): boolean {
return element === this.root.element || this.nodes.has(element as T);
}
// View
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册