Update spservice.ts to fix delete events

Update spservice.ts to fix issue with delete recurrence events that has no recurrence Exception.
This commit is contained in:
mohammadamer 2021-03-16 14:02:54 +02:00 committed by GitHub
parent 3ac7896282
commit 28900087ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ export default class spservices {
break;
case '1': // recurrence Event
// if delete is a main recrrence delete all recurrences and main recurrence
if (recurrenceSeriesEdited) {
if (!recurrenceSeriesEdited) {
// delete execptions if exists before delete recurrence event
await this.deleteRecurrenceExceptions(event, siteUrl, listId);
await web.lists.getById(listId).items.getById(event.Id).delete();