React-Calendar sample edit dialog fix (#1147)

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Updated sample YAML description

* Added recurrenceInfo null check when opening edit dialog

Co-authored-by: Sylvia Okafor <sokafor@microsoft.com>
This commit is contained in:
Matti Paukkonen 2020-03-09 20:06:45 +02:00 committed by GitHub
parent 0735b5edfb
commit faddec698f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -814,6 +814,8 @@ export class Event extends React.Component<IEventProps, IEventState> {
});
const recurrenceInfo: any = await promise;
if(recurrenceInfo != null)
{
let keys = Object.keys(recurrenceInfo.recurrence.rule[0].repeat[0]);
const recurrenceTypes = ["daily", "weekly", "monthly", "monthlyByDay", "yearly", "yearlyByDay"];
for (var key of keys) {
@ -842,6 +844,7 @@ export class Event extends React.Component<IEventProps, IEventState> {
}
}
}
}
/**