Skip to content

Commit 4c29f3a

Browse files
fix: prevent node not found on expand node
1 parent e91a711 commit 4c29f3a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

source/class/qxl/datagrid/source/tree/TreeDataSource.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,13 @@ qx.Class.define("qxl.datagrid.source.tree.TreeDataSource", {
193193

194194
/**@override */
195195
async expandNode(node) {
196-
await this.queue(() => this._expandNode(node));
196+
await this.queue(() => {
197+
let rowMeta = this._getNodeMetaData(node);
198+
// Check that the node is in the tree - it might have been removed since we were queued
199+
if (rowMeta) {
200+
this._expandNode(node);
201+
}
202+
});
197203
},
198204

199205
/**

0 commit comments

Comments
 (0)