Skip to content

EspoCRM – Open Source CRM Application

Fix personal data erase for arrays

Yuriifad16bd9835f
diff --git a/client/src/views/personal-data/record/record.js b/client/src/views/personal-data/record/record.js
index 1f341d4b4f..1d2cc08091 100644
--- a/client/src/views/personal-data/record/record.js
+++ b/client/src/views/personal-data/record/record.js
@@ -125,7 +125,7 @@ class PersonalDataRecordView extends BaseRecordView {
if (value) {
if (Object.prototype.toString.call(value) === '[object Array]') {
- if (value.length) {
+ if (!value.length) {
return;
}
}