Skip to content

Commit

Permalink
fix: prevent node not found on expand node
Browse files Browse the repository at this point in the history
  • Loading branch information
WillsterJohnsonAtZenesis committed Sep 27, 2024
1 parent e91a711 commit 4c29f3a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion source/class/qxl/datagrid/source/tree/TreeDataSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,13 @@ qx.Class.define("qxl.datagrid.source.tree.TreeDataSource", {

/**@override */
async expandNode(node) {
await this.queue(() => this._expandNode(node));
await this.queue(() => {
let rowMeta = this._getNodeMetaData(node);
// Check that the node is in the tree - it might have been removed since we were queued
if (rowMeta) {
this._expandNode(node);
}
});
},

/**
Expand Down

0 comments on commit 4c29f3a

Please sign in to comment.