Skip to content

Commit edc7819

Browse files
committed
fix: fix celldata error
1 parent f2b2dd7 commit edc7819

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/devextreme/js/__internal/scheduler/workspaces/m_work_space.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,13 @@ class SchedulerWorkSpace extends Widget<WorkspaceOptionsInternal> {
511511

512512
const isMultiSelectionAllowed = this.option('allowMultipleCellSelection');
513513
const currentCellData = this._getFullCellData($cell);
514-
const focusedCellData = this.cellsSelectionState.getFocusedCell().cellData;
514+
const focusedCell = this.cellsSelectionState.getFocusedCell();
515+
516+
if (!focusedCell) {
517+
return;
518+
}
519+
520+
const focusedCellData = focusedCell.cellData;
515521

516522
const nextFocusedCellData = this.cellsSelectionController.moveToCell({
517523
isMultiSelection,

0 commit comments

Comments
 (0)