提交 0a053796 编写于 作者: I isidor

tree: do not break fully when you can not collapse an unexisting node

#113562
上级 bdd2f162
......@@ -770,7 +770,9 @@ export class AsyncDataTree<TInput, T, TFilterData = void> implements IDisposable
return this.setChildren(node, children, recursive, viewStateContext);
} catch (err) {
if (node !== this.root) {
this.tree.collapse(node === this.root ? null : node);
try {
this.tree.collapse(node === this.root ? null : node);
} catch (e) { }
}
if (isPromiseCanceledError(err)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册