File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ export const getDateNavigator = (header: SchedulerHeader, item: ToolbarItem): To
170170 const { onItemClick } = options ;
171171
172172 const items = options . items ?? DEFAULT_ITEMS ;
173- options . items = items . map ( ( groupItem : ButtonGroupItem ) => {
173+ options . items = items . map ( ( groupItem : ButtonGroupItem | string ) => {
174174 switch ( groupItem ) {
175175 case ITEMS_NAME . previousButton :
176176 return getPreviousButtonOptions ( header ) ;
@@ -179,7 +179,7 @@ export const getDateNavigator = (header: SchedulerHeader, item: ToolbarItem): To
179179 case ITEMS_NAME . calendarButton :
180180 return getCalendarButtonOptions ( header ) ;
181181 default :
182- return groupItem ;
182+ return groupItem as ButtonGroupItem ;
183183 }
184184 } ) ;
185185 options . onItemClick = ( event ) : void => {
You can’t perform that action at this time.
0 commit comments