pollination-react-io 1.28.5 → 1.28.6

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.
@@ -44249,7 +44249,11 @@ var RecipeInputsForm = function (_a) {
44249
44249
  var inputProps = __assign({}, register(input.name, {
44250
44250
  valueAsNumber: ['DAGIntegerInput', 'DAGNumberInput'].includes(input.type)
44251
44251
  }));
44252
- var handleReset = function () { return resetField(input.name); };
44252
+ var handleReset = function () {
44253
+ resetField(input.name, {
44254
+ defaultValue: defaultValue
44255
+ });
44256
+ };
44253
44257
  return (React__default.createElement(FormInput, { key: "".concat(input.name, "-").concat(i), name: input.name, description: input.description, hidden: hidden, errorMessage: !input.required && errors[input.name] ? (_a = errors[input.name]) === null || _a === void 0 ? void 0 : _a.message : undefined }, (function () {
44254
44258
  var _a;
44255
44259
  switch (input.type) {
@@ -44293,9 +44297,11 @@ var RecipeInputsForm = function (_a) {
44293
44297
  var key = _a[0], val = _a[1];
44294
44298
  return (
44295
44299
  // @ts-ignore
44296
- val.type !== 'required' && React__default.createElement("li", { key: key, style: { color: 'red', fontSize: '0.8rem', listStyle: 'none' } }, "".concat(key, " ").concat(val.message, ".")));
44300
+ val.type !== 'required'
44301
+ ? React__default.createElement("li", { key: key, style: { color: 'red', fontSize: '0.8rem', listStyle: 'none' } }, "".concat(key, " ").concat(val.message, "."))
44302
+ : React__default.createElement("li", { key: key, style: { color: 'red', fontSize: '0.8rem', listStyle: 'none' } }, "".concat(key, " is missing.")));
44297
44303
  }))) :
44298
- isSubmitSuccessful ? 'Study has been successfully submitted.' : 'Please, add the missing information.' },
44304
+ isSubmitSuccessful ? 'Study has been successfully submitted.' : null },
44299
44305
  React__default.createElement(Button, { type: 'submit', form: recipe.metadata.name, disabled: !isValid || loading, style: {
44300
44306
  width: 'fit-content',
44301
44307
  }, loading: loading }, "Create Study"))))));