Skip to content

Commit 38bc2ef

Browse files
Scheduler - Fix TypeScript error in appointment_popup.integration.test (DevExpress#33281)
1 parent e79ad9a commit 38bc2ef

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/devextreme/js/__internal/scheduler/appointment_popup/appointment_popup.integration.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,8 +1666,8 @@ describe('Appointment Form', () => {
16661666

16671667
scheduler.showAppointmentPopup(commonAppointment);
16681668

1669-
// @ts-expect-error POM.popup.dxForm.option('items')[1]
1670-
const recurrenceGroup = POM.popup.dxForm.option('items')[1] as GroupItem;
1669+
const formItems = POM.popup.dxForm.option('items') ?? [];
1670+
const recurrenceGroup = formItems[1] as GroupItem;
16711671
const allItems = flattenBy<SimpleItem>(
16721672
recurrenceGroup.items as SimpleItem[],
16731673
(i) => (i as unknown as GroupItem).items as SimpleItem[] | undefined,

0 commit comments

Comments
 (0)