|
|
@ -107,7 +107,7 @@ class EventEdit extends React.PureComponent<PropsType> {
|
|
|
|
this.state.location = event.location ? event.location : '';
|
|
|
|
this.state.location = event.location ? event.location : '';
|
|
|
|
this.state.description = event.description ? event.description : '';
|
|
|
|
this.state.description = event.description ? event.description : '';
|
|
|
|
this.state.timezone = event.timezone;
|
|
|
|
this.state.timezone = event.timezone;
|
|
|
|
this.state.rrule = this.props.item?.component.getFirstPropertyValue('rrule');
|
|
|
|
this.state.rrule = this.props.item?.component.getFirstPropertyValue<ICAL.Recur>('rrule')?.toJSON();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.state.uid = uuid.v4();
|
|
|
|
this.state.uid = uuid.v4();
|
|
|
|
}
|
|
|
|
}
|
|
|
|