(rawMap, items)
| 4971 | } |
| 4972 | |
| 4973 | function editableWeightedValue(rawMap, items) { |
| 4974 | const entries = Object.entries(rawMap || {}); |
| 4975 | if (entries.length) { |
| 4976 | return entries |
| 4977 | .sort((a, b) => Number(b[1]) - Number(a[1])) |
| 4978 | .map(([key, value]) => `${key}:${Number(value || 1)}`) |
| 4979 | .join("; "); |
| 4980 | } |
| 4981 | return splitListValue(items).join("; "); |
| 4982 | } |
| 4983 | |
| 4984 | function profileAffiliation(raw, userInfo) { |
| 4985 | return firstText( |
no test coverage detected