@bigbinary/neeto-rules-frontend 2.7.16 → 2.7.18

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.
@@ -959,12 +959,13 @@ var SelectTemplateField = function SelectTemplateField(_ref) {
959
959
  _useStateWithDependen2 = _slicedToArray(_useStateWithDependen, 2),
960
960
  selectedTemplate = _useStateWithDependen2[0],
961
961
  setSelectedTemplate = _useStateWithDependen2[1];
962
- var handleTemplateChange = function handleTemplateChange(option) {
963
- setSelectedTemplate(option);
964
- if (!option) return;
962
+ var handleTemplateChange = function handleTemplateChange(templateId) {
963
+ setSelectedTemplate(templateId);
964
+ if (!templateId) return;
965
965
  var template = neetoCist.findBy({
966
- id: option.value
966
+ id: templateId
967
967
  }, templates);
968
+ if (!template) return;
968
969
  onChange === null || onChange === void 0 || onChange(template);
969
970
  };
970
971
  var _ref2 = (selectedField === null || selectedField === void 0 ? void 0 : selectedField.helpPopoverProps) || {},
@@ -5123,7 +5124,7 @@ var getSchemaForExecutionDelay = function getSchemaForExecutionDelay(_) {
5123
5124
  return true;
5124
5125
  }
5125
5126
  var schema = yup__namespace.object().shape({
5126
- value: yup__namespace.number().nullable().integer().typeError(i18next.t("neetoRules.validations.number")).min(1, i18next.t("neetoRules.validations.minDelay", {
5127
+ value: yup__namespace.number().nullable().integer(i18next.t("neetoRules.validations.number")).typeError(i18next.t("neetoRules.validations.number")).min(1, i18next.t("neetoRules.validations.minDelay", {
5127
5128
  min: 1
5128
5129
  })).max(999, i18next.t("neetoRules.validations.maxDelay", {
5129
5130
  max: 999
@@ -5420,4 +5421,4 @@ exports.getSlackChannelErrors = getSlackChannelErrors;
5420
5421
  exports.getValidationSchema = getValidationSchema;
5421
5422
  exports.getVerbOptions = getVerbOptions;
5422
5423
  exports.usePollRuleName = usePollRuleName;
5423
- //# sourceMappingURL=index-D7dZ7WdP.js.map
5424
+ //# sourceMappingURL=index-Vt6GY_o0.js.map