Skip to content

Commit e6529ba

Browse files
committed
fixes gautamsi#322
1 parent c5465ca commit e6529ba

File tree

1 file changed

+10
-10
lines changed
  • src/js/Core/ServiceObjects/Items

1 file changed

+10
-10
lines changed

src/js/Core/ServiceObjects/Items/Item.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { AffectedTaskOccurrence } from "../../../Enumerations/AffectedTaskOccurrence";
22
import { ArchiveTag } from "../../../ComplexProperties/ArchiveTag";
3-
import { ArrayHelper, StringHelper } from "../../../ExtensionMethods";
3+
import { ArrayHelper, StringHelper, isNullOrUndefined } from "../../../ExtensionMethods";
44
import { Attachment } from "../../../ComplexProperties/Attachment";
55
import { AttachmentCollection } from "../../../ComplexProperties/AttachmentCollection";
66
import { ConflictResolutionMode } from "../../../Enumerations/ConflictResolutionMode";
@@ -670,7 +670,9 @@ export class Item extends ServiceObject {
670670
* @param {boolean} suppressReadReceipts Whether to suppress read receipts
671671
*/
672672
Delete(deleteMode: DeleteMode, suppressReadReceipts: boolean): Promise<void>
673-
Delete(deleteMode: DeleteMode, suppressReadReceipts: boolean = false): Promise<void> { return this.InternalDelete(deleteMode, null, null, suppressReadReceipts); }
673+
Delete(deleteMode: DeleteMode, suppressReadReceipts: boolean = false): Promise<void> {
674+
return this.InternalDelete(deleteMode, null, null, suppressReadReceipts);
675+
}
674676

675677
/**
676678
* @internal Gets a list of extended properties defined on this object.
@@ -785,16 +787,14 @@ export class Item extends ServiceObject {
785787
this.ThrowIfThisIsAttachment();
786788

787789
// If sendCancellationsMode is null, use the default value that's appropriate for item type.
788-
// if (!sendCancellationsMode)
789-
// {
790-
// sendCancellationsMode = this.DefaultSendCancellationsMode;
791-
// }
790+
if (isNullOrUndefined(sendCancellationsMode)) {
791+
sendCancellationsMode = this.DefaultSendCancellationsMode;
792+
}
792793

793794
// If affectedTaskOccurrences is null, use the default value that's appropriate for item type.
794-
// if (!affectedTaskOccurrences)
795-
// {
796-
// affectedTaskOccurrences = this.DefaultAffectedTaskOccurrences;
797-
// }
795+
if (isNullOrUndefined(affectedTaskOccurrences)) {
796+
affectedTaskOccurrences = this.DefaultAffectedTaskOccurrences;
797+
}
798798

799799
return this.Service.DeleteItem(
800800
this.Id,

0 commit comments

Comments
 (0)