Skip to content

Commit 28d474a

Browse files
committed
fix test
1 parent 51f71b4 commit 28d474a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/devextreme/js/__internal/grids/grid_core/data_controller/m_data_controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@ export class DataController extends DataHelperMixin(modules.Controller) {
11561156
const changeType = change.changeType || 'refresh';
11571157

11581158
change.changeType = changeType;
1159-
change.operationTypes = this._currentOperationTypes;
1159+
change.operationTypes ??= this._currentOperationTypes;
11601160
this._currentOperationTypes = null;
11611161

11621162
if (dataSource) {

packages/devextreme/testing/tests/DevExpress.ui.widgets.dataGrid/dataController.tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3242,8 +3242,8 @@ QUnit.module('Paging', { beforeEach: setupPagingModule, afterEach: teardownPagin
32423242
// assert
32433243
assert.equal(this.dataController.items().length, 3);
32443244
assert.equal(this.dataController.pageCount(), 3);
3245-
assert.equal(this.dataController.pageIndex(), 0);
3246-
assert.deepEqual(this.dataController.items()[0].values, ['Alex', 215]);
3245+
assert.equal(this.dataController.pageIndex(), 1);
3246+
assert.deepEqual(this.dataController.items()[0].values, ['Dan3', 153]);
32473247

32483248
// T262949
32493249
assert.equal(countCallPageChanged, 1, 'count call pageChanged');

0 commit comments

Comments
 (0)