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:
parent
3ac7896282
commit
28900087ec
|
@ -246,7 +246,7 @@ export default class spservices {
|
||||||
break;
|
break;
|
||||||
case '1': // recurrence Event
|
case '1': // recurrence Event
|
||||||
// if delete is a main recrrence delete all recurrences and main recurrence
|
// if delete is a main recrrence delete all recurrences and main recurrence
|
||||||
if (recurrenceSeriesEdited) {
|
if (!recurrenceSeriesEdited) {
|
||||||
// delete execptions if exists before delete recurrence event
|
// delete execptions if exists before delete recurrence event
|
||||||
await this.deleteRecurrenceExceptions(event, siteUrl, listId);
|
await this.deleteRecurrenceExceptions(event, siteUrl, listId);
|
||||||
await web.lists.getById(listId).items.getById(event.Id).delete();
|
await web.lists.getById(listId).items.getById(event.Id).delete();
|
||||||
|
|
Loading…
Reference in New Issue