@yuuvis/client-core 2.1.12 → 2.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4513,7 +4513,8 @@ class RetentionService {
4513
4513
  return this.#dms.updateDmsObjects(payload);
4514
4514
  }
4515
4515
  getRetentionState(dmsObject) {
4516
- const hasRetentionSOT = dmsObject.data[BaseObjectTypeField.SECONDARY_OBJECT_TYPE_IDS].includes(SystemSOT.DESTRUCTION_RETENTION);
4516
+ const objectSOTs = dmsObject.data[BaseObjectTypeField.SECONDARY_OBJECT_TYPE_IDS];
4517
+ const hasRetentionSOT = objectSOTs && objectSOTs.includes(SystemSOT.DESTRUCTION_RETENTION);
4517
4518
  if (hasRetentionSOT) {
4518
4519
  const now = new Date();
4519
4520
  const retentionStart = new Date(dmsObject.data[RetentionField.RETENTION_START]);