File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/devextreme/js/__internal/grids/tree_list/data_source_adapter Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -378,14 +378,14 @@ export class DataSourceAdapterTreeList extends DataSourceAdapter {
378378 }
379379
380380 private _loadParentsOrChildren ( data , options , needChildren ?) {
381- // Check if this operation is still relevant
382381 if ( options . operationId !== undefined
383382 && this . _lastOperationId !== undefined
384383 && options . operationId !== this . _lastOperationId ) {
384+ this . _dataSource . close ( options . operationId ) ; // Cancel the request
385385 // @ts -expect-error
386386 const rejectedDeferred = new Deferred ( ) ;
387387 rejectedDeferred . reject ( ) ;
388- return rejectedDeferred ; // This request is outdated - return rejected Deferred
388+ return rejectedDeferred ; // Return rejected Deferred
389389 }
390390
391391 let filter ;
You can’t perform that action at this time.
0 commit comments