@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.js CHANGED
@@ -3870,7 +3870,7 @@ var getSlackChannelErrors = function getSlackChannelErrors(slackChannels, action
3870
3870
  var Menu$9 = Dropdown$1.Menu,
3871
3871
  MenuItem$9 = Dropdown$1.MenuItem;
3872
3872
  var DropdownField$1 = function DropdownField(_ref) {
3873
- var _actions$value$index$, _errors$actions, _errors$actions$value, _touched$actions, _touched$actions$valu, _selectedField$separa, _defaultSelectedOptio;
3873
+ var _actions$value$index$, _actions$value$index, _errors$actions, _errors$actions$value, _touched$actions, _touched$actions$valu, _selectedField$separa, _defaultSelectedOptio;
3874
3874
  var dropdownOptions = _ref.dropdownOptions,
3875
3875
  name = _ref.name,
3876
3876
  index = _ref.index,
@@ -3896,7 +3896,7 @@ var DropdownField$1 = function DropdownField(_ref) {
3896
3896
  _useState6 = _slicedToArray(_useState5, 2),
3897
3897
  searchTerm = _useState6[0],
3898
3898
  setSearchTerm = _useState6[1];
3899
- var defaultValue = (_actions$value$index$ = actions.value[index].metadata) === null || _actions$value$index$ === void 0 ? void 0 : _actions$value$index$.value;
3899
+ 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);
3900
3900
  var searchedOptions = getSearchedOptions$3(dropdownOptions, searchTerm);
3901
3901
  var isValueSelected = defaultSelectedOption.label === defaultLabel && errors.actions && 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]) && 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]);
3902
3902
  var separator = (selectedField === null || selectedField === void 0 ? void 0 : (_selectedField$separa = selectedField.separator) === null || _selectedField$separa === void 0 ? void 0 : _selectedField$separa.toLowerCase()) || t$1("neetoRules.common.to");