fix too many updates

This commit is contained in:
Joao Moreno 2019-09-09 17:31:21 +02:00
parent 1ba4dc6954
commit 332c4d9f64

View file

@ -278,7 +278,7 @@ export class IndexTreeModel<T extends Exclude<any, undefined>, TFilterData = voi
private _setListNodeCollapseState(node: IMutableTreeNode<T, TFilterData>, listIndex: number, revealed: boolean, update: CollapseStateUpdate): boolean {
const result = this._setNodeCollapseState(node, update, false);
if (!revealed || !node.visible) {
if (!revealed || !node.visible || !result) {
return result;
}