@sis-cc/dotstatsuite-visions 7.8.1 → 7.8.2
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.
|
@@ -69,9 +69,13 @@ var CollapsibleTree = function CollapsibleTree(_ref) {
|
|
|
69
69
|
|
|
70
70
|
var getValue = function getValue(_ref2) {
|
|
71
71
|
var value = _ref2.value,
|
|
72
|
-
|
|
72
|
+
_ref2$children = _ref2.children,
|
|
73
|
+
children = _ref2$children === undefined ? [] : _ref2$children,
|
|
74
|
+
handlerProps = _objectWithoutProperties(_ref2, ['value', 'children']);
|
|
73
75
|
|
|
74
|
-
if (R.isNil(value) || R.isEmpty(value))
|
|
76
|
+
if ((R.isNil(value) || R.isEmpty(value)) && R.isEmpty(children)) {
|
|
77
|
+
return R.prop('noValue', labels);
|
|
78
|
+
}
|
|
75
79
|
if (R.is(Function, valueHandler)) {
|
|
76
80
|
return valueHandler(_extends({ value: value }, handlerProps));
|
|
77
81
|
}
|
|
@@ -130,7 +134,7 @@ var CollapsibleTree = function CollapsibleTree(_ref) {
|
|
|
130
134
|
React.createElement(
|
|
131
135
|
Typography,
|
|
132
136
|
{ className: classes.spacingValue, variant: 'body2' },
|
|
133
|
-
getValue(_extends({ value: value }, handlerProps))
|
|
137
|
+
getValue(_extends({ value: value, children: children }, handlerProps))
|
|
134
138
|
),
|
|
135
139
|
children && R.map(function (_ref5) {
|
|
136
140
|
var id = _ref5.id,
|
|
@@ -113,9 +113,13 @@ var CollapsibleTree = function CollapsibleTree(_ref) {
|
|
|
113
113
|
|
|
114
114
|
var getValue = function getValue(_ref2) {
|
|
115
115
|
var value = _ref2.value,
|
|
116
|
-
|
|
116
|
+
_ref2$children = _ref2.children,
|
|
117
|
+
children = _ref2$children === undefined ? [] : _ref2$children,
|
|
118
|
+
handlerProps = _objectWithoutProperties(_ref2, ['value', 'children']);
|
|
117
119
|
|
|
118
|
-
if (R.isNil(value) || R.isEmpty(value))
|
|
120
|
+
if ((R.isNil(value) || R.isEmpty(value)) && R.isEmpty(children)) {
|
|
121
|
+
return R.prop('noValue', labels);
|
|
122
|
+
}
|
|
119
123
|
if (R.is(Function, valueHandler)) {
|
|
120
124
|
return valueHandler(_extends({ value: value }, handlerProps));
|
|
121
125
|
}
|
|
@@ -174,7 +178,7 @@ var CollapsibleTree = function CollapsibleTree(_ref) {
|
|
|
174
178
|
_react2.default.createElement(
|
|
175
179
|
_Typography2.default,
|
|
176
180
|
{ className: classes.spacingValue, variant: 'body2' },
|
|
177
|
-
getValue(_extends({ value: value }, handlerProps))
|
|
181
|
+
getValue(_extends({ value: value, children: children }, handlerProps))
|
|
178
182
|
),
|
|
179
183
|
children && R.map(function (_ref5) {
|
|
180
184
|
var id = _ref5.id,
|