@arquimedes.co/eureka-forms 1.9.124 → 1.9.125
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.
|
@@ -170,7 +170,7 @@ export default function RoundedSmartSelect(_a) {
|
|
|
170
170
|
}
|
|
171
171
|
else {
|
|
172
172
|
// Regular option
|
|
173
|
-
return (_b = option.label) !== null && _b !== void 0 ? _b : '';
|
|
173
|
+
return (_b = option === null || option === void 0 ? void 0 : option.label) !== null && _b !== void 0 ? _b : '';
|
|
174
174
|
}
|
|
175
175
|
}, getOptionSelected: getOptionSelected, PopperComponent: function (_a) {
|
|
176
176
|
var style = _a.style, props = __rest(_a, ["style"]);
|
|
@@ -231,6 +231,6 @@ export default function RoundedSmartSelect(_a) {
|
|
|
231
231
|
? function (props) {
|
|
232
232
|
return cloneElement(icon, props);
|
|
233
233
|
}
|
|
234
|
-
: undefined, showIcon: showIcon }, { children: [_jsx(MenuItem, __assign({ value: '', style: { whiteSpace: 'normal' } }, { children: _jsx("em", { children: options ? 'Sin Seleccionar' : 'Cargando...' }) }), 'EMPTY'), options === null || options === void 0 ? void 0 : options.map(function (option) { return (_jsx(MenuItem, __assign({ value: getValueString(option), style: { whiteSpace: 'normal' } }, { children: option.label }), getValueString(option))); }), options === undefined && value
|
|
234
|
+
: undefined, showIcon: showIcon }, { children: [_jsx(MenuItem, __assign({ value: '', style: { whiteSpace: 'normal' } }, { children: _jsx("em", { children: options ? 'Sin Seleccionar' : 'Cargando...' }) }), 'EMPTY'), options === null || options === void 0 ? void 0 : options.map(function (option) { return (_jsx(MenuItem, __assign({ value: getValueString(option), style: { whiteSpace: 'normal' } }, { children: option.label }), getValueString(option))); }), options === undefined && value && (_jsx(MenuItem, __assign({ value: getValueString(value), style: { whiteSpace: 'normal' } }, { children: (_b = value.label) !== null && _b !== void 0 ? _b : '' }), getValueString(value)))] })));
|
|
235
235
|
}
|
|
236
236
|
}
|
package/package.json
CHANGED