MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / editableWeightedValue

Function editableWeightedValue

deployments/desktop/static/desktop.js:4973–4982  ·  view source on GitHub ↗
(rawMap, items)

Source from the content-addressed store, hash-verified

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(

Callers 1

renderProfileInfoGridFunction · 0.85

Calls 1

splitListValueFunction · 0.85

Tested by

no test coverage detected