@@ -79,7 +79,7 @@ let childrenMap: any = {
79
79
resourcesEvents : jsonValueExposingStateControl ( "resourcesEvents" , resourcesEventsDefaultData ) ,
80
80
resources : jsonValueExposingStateControl ( "resources" , resourcesDefaultData ) ,
81
81
resourceName : withDefault ( StringControl , trans ( "calendar.resourcesDefault" ) ) ,
82
- onEvent : CalendarEventHandlerControl ,
82
+ onEvent : CalendarEventHandlerControl ? CalendarEventHandlerControl : ChangeEventHandlerControl ,
83
83
// onDropEvent: safeDragEventHandlerControl,
84
84
editable : withDefault ( BoolControl , true ) ,
85
85
showEventTime : withDefault ( BoolControl , true ) ,
@@ -124,10 +124,10 @@ let CalendarBasicComp = (function () {
124
124
currentPremiumView ?: string ;
125
125
} , dispatch : any ) => {
126
126
127
- const comp = useContext ( EditorContext ) . getUICompByName (
128
- useContext ( CompNameContext )
127
+ const comp = useContext ( EditorContext ) . getUICompByName (
128
+ useContext ( CompNameContext )
129
129
) ;
130
- const onEventVal = comp ?. toJsonValue ( ) . comp . onEvent ;
130
+ const onEventVal = comp ?. toJsonValue ( ) ? .comp ? .onEvent ;
131
131
132
132
133
133
const theme = useContext ( ThemeContext ) ;
0 commit comments