EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
fix multi-enum n^2
Yuri Kuznetsov72f9ff1a4a11
diff --git a/client/src/ui/multi-select.js b/client/src/ui/multi-select.jsindex 7013d7c886..bc8503b1e5 100644--- a/client/src/ui/multi-select.js+++ b/client/src/ui/multi-select.js@@ -162,12 +162,20 @@ const MultiSelect = {}}- const styleMap = (options.items || []).reduce((o, it) => ({- [it.value]: it.style,- ...o,- }), {});-const classMap = {};+ const styleMap = {};++ (options.items || []).forEach(it => {+ if (it.small) {+ classMap[it.value] = 'small';+ }++ if (it.style) {+ styleMap[it.value] = it.style;+ }++ });+(options.items || []).forEach(it => {if (it.small) {