in packages/issue-dashboard-widgets/widgets/youtrack-activities-widget/app/content-custom-field-activity.js [169:184]
renderRemovedFieldValueChange(activity, presentValue) {
// in case of lost information about field we can only guess the type of
// from the kind of data in added or removed activity fields
const isArray = obj => (obj && Array.isArray(obj));
const isMulti = obj => (obj && obj.length && obj.length > 1);
if (isArray(activity.removed) || isArray(activity.added)) {
if (isMulti(activity.removed) || isMulti(activity.removed)) {
return this.renderMultiValueChange(activity, presentValue);
} else {
return this.renderSingleValueChange(activity, presentValue);
}
} else {
return this.renderSimpleValueChange(activity, presentValue);
}
}