@contrail/documents 1.2.2 → 1.2.3

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.
@@ -195,13 +195,8 @@ class DynamicTextUtil {
195
195
  text = formatter.formatValueForProperty(memberValues[memberValues.length - 1], property);
196
196
  }
197
197
  else if (displayFunction === DynamicTextDisplayFunction.MIN) {
198
- const minValue = Math.min(...memberValues.filter((e) => e !== null && e !== undefined));
199
- if (minValue > 0 && (memberValues.includes(null) || memberValues.includes(undefined))) {
200
- text = '';
201
- }
202
- else {
203
- text = formatter.formatValueForProperty(minValue, property);
204
- }
198
+ memberValues = memberValues.filter((e) => e !== null && e !== undefined);
199
+ text = formatter.formatValueForProperty(Math.min(...memberValues), property);
205
200
  }
206
201
  else if (displayFunction === DynamicTextDisplayFunction.MAX) {
207
202
  memberValues = memberValues.filter((e) => e !== null && e !== undefined);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/documents",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Documents library for contrail platform",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",