@bigbinary/neeto-rules-frontend 0.3.4 → 0.3.5
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.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -3900,7 +3900,7 @@ var getSlackChannelErrors = function getSlackChannelErrors(slackChannels, action
|
|
|
3900
3900
|
var Menu$9 = neetoui.Dropdown.Menu,
|
|
3901
3901
|
MenuItem$9 = neetoui.Dropdown.MenuItem;
|
|
3902
3902
|
var DropdownField$1 = function DropdownField(_ref) {
|
|
3903
|
-
var _actions$value$index$, _errors$actions, _errors$actions$value, _touched$actions, _touched$actions$valu, _selectedField$separa, _defaultSelectedOptio;
|
|
3903
|
+
var _actions$value$index$, _actions$value$index, _errors$actions, _errors$actions$value, _touched$actions, _touched$actions$valu, _selectedField$separa, _defaultSelectedOptio;
|
|
3904
3904
|
var dropdownOptions = _ref.dropdownOptions,
|
|
3905
3905
|
name = _ref.name,
|
|
3906
3906
|
index = _ref.index,
|
|
@@ -3926,7 +3926,7 @@ var DropdownField$1 = function DropdownField(_ref) {
|
|
|
3926
3926
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
3927
3927
|
searchTerm = _useState6[0],
|
|
3928
3928
|
setSearchTerm = _useState6[1];
|
|
3929
|
-
var defaultValue = (_actions$value$index$ = actions.value[index].metadata) === null || _actions$value$index$ === void 0 ? void 0 : _actions$value$index$.value;
|
|
3929
|
+
var defaultValue = ((_actions$value$index$ = actions.value[index].metadata) === null || _actions$value$index$ === void 0 ? void 0 : _actions$value$index$.value) || ((_actions$value$index = actions.value[index]) === null || _actions$value$index === void 0 ? void 0 : _actions$value$index.value);
|
|
3930
3930
|
var searchedOptions = getSearchedOptions$3(dropdownOptions, searchTerm);
|
|
3931
3931
|
var isValueSelected = defaultSelectedOption.label === defaultLabel && errors.actions && ramda.isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 ? void 0 : (_errors$actions$value = _errors$actions.value) === null || _errors$actions$value === void 0 ? void 0 : _errors$actions$value[index]) && ramda.isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 ? void 0 : (_touched$actions$valu = _touched$actions.value) === null || _touched$actions$valu === void 0 ? void 0 : _touched$actions$valu[index]);
|
|
3932
3932
|
var separator = (selectedField === null || selectedField === void 0 ? void 0 : (_selectedField$separa = selectedField.separator) === null || _selectedField$separa === void 0 ? void 0 : _selectedField$separa.toLowerCase()) || i18next.t("neetoRules.common.to");
|