Skip to content

Commit c702a61

Browse files
committed
refactor: review
1 parent bb4dc22 commit c702a61

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

packages/devextreme/js/__internal/scheduler/workspaces/view_model/grouped_data_map_provider.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@ export class GroupedDataMapProvider {
147147
} = cellInfo;
148148
const { viewOffset } = this.viewOptions;
149149

150-
// eslint-disable-next-line no-undef-init
151-
let foundPosition: CellPositionData | undefined = undefined;
152-
this.getRowsForCellSearch(allDay, groupIndex).some(
153-
(row) => row.some((cell) => {
150+
// eslint-disable-next-line @typescript-eslint/init-declarations
151+
let foundPosition: CellPositionData | undefined;
152+
this.getRowsForCellSearch(allDay, groupIndex).forEach((row) => {
153+
row.forEach((cell) => {
154154
const originCellData = cell.cellData;
155155
// NOTE: If this is appointment's render call
156156
// we should shift the real cellData dates by viewOffset
@@ -168,11 +168,9 @@ export class GroupedDataMapProvider {
168168
&& this.isStartDateInCell(startDate, allDay, cellData, originCellData)
169169
) {
170170
foundPosition = cell.position;
171-
return true;
172171
}
173-
return false;
174-
}),
175-
);
172+
});
173+
});
176174

177175
return foundPosition;
178176
}

0 commit comments

Comments
 (0)