Skip to content

Commit

Permalink
WEBUI-992: prevent replacing and removing an attachment under retenti…
Browse files Browse the repository at this point in the history
…on when using nuxeo-dropzone
  • Loading branch information
Nishant0928 committed Aug 3, 2023
1 parent 9e0cd4d commit f6020c1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion elements/nuxeo-dropzone/nuxeo-dropzone.js
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,12 @@ Polymer({
},

_isDropzoneVisible(document) {
if (document && document.isUnderRetentionOrLegalHold && document.retainedProperties.length > 0) {
if (
document &&
document.isUnderRetentionOrLegalHold &&
document.retainedProperties &&
document.retainedProperties.length > 0
) {
if (document.retainedProperties.indexOf(this.xpath) !== -1) {
return false;
}
Expand Down

0 comments on commit f6020c1

Please sign in to comment.