pollination-react-io 1.92.0 → 1.92.1

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/build/index.js CHANGED
@@ -47239,11 +47239,17 @@ var RecipeForm = function (_a) {
47239
47239
  };
47240
47240
  alias && inputInfo.useAlias && Object.keys(alias).forEach(function (key) {
47241
47241
  if (key in inputInfo) {
47242
- // if the alias is DAGGenericInputAlias
47242
+ // if alias is DAGGenericInputAlias keep native one
47243
+ // if alias is file and input is file keep native one
47244
+ // important for red messages if delete value
47243
47245
  if (key == 'type') {
47244
47246
  if (alias[key] === 'DAGGenericInputAlias') {
47245
47247
  return;
47246
47248
  }
47249
+ else if (alias[key] === 'DAGFileInputAlias'
47250
+ && inputInfo.type === 'DAGFileInput') {
47251
+ return;
47252
+ }
47247
47253
  }
47248
47254
  // if Linked Input keep the native name
47249
47255
  // Example, see mapping: from sim-par and sim_par
@@ -47530,8 +47536,8 @@ var RecipeForm = function (_a) {
47530
47536
  host !== 'web' && React__default["default"].createElement(Button, { type: 'submit', style: { width: '100%',
47531
47537
  margin: '10px 0 0 0',
47532
47538
  justifyContent: 'center' }, disabled: !localConfig.isLocalJob
47533
- ? !isValid || loading
47534
- : !isValid || loading || localConfig.localRunFolder == null, form: recipe.metadata.name, loading: loading }, "Create Study")));
47539
+ ? (Object.keys(errors).length !== 0) || loading
47540
+ : (Object.keys(errors).length !== 0) || loading || localConfig.localRunFolder == null, form: recipe.metadata.name, loading: loading }, "Create Study")));
47535
47541
  };
47536
47542
 
47537
47543
  var defaultStyle = {