@d4l/collect-lib 1.20.0 → 1.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1048,6 +1048,9 @@ function calculateValueSetScore(item, valueSets, scoring) {
|
|
|
1048
1048
|
var _a2;
|
|
1049
1049
|
return Object.values((_a2 = scoringSystems[system]) != null ? _a2 : {});
|
|
1050
1050
|
});
|
|
1051
|
+
if (possibleValues.length === 0) {
|
|
1052
|
+
return { min: 0, max: 0 };
|
|
1053
|
+
}
|
|
1051
1054
|
return { min: Math.min(...possibleValues), max: Math.max(...possibleValues) };
|
|
1052
1055
|
}
|
|
1053
1056
|
function calculateNumericScore(item, scoring) {
|