bhl-forms 0.0.68 → 0.0.70

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.
@@ -10663,6 +10663,9 @@ var dataDefaults = {
10663
10663
  if (!node2 || !key || !node2.attrs.inputMap) {
10664
10664
  return true;
10665
10665
  }
10666
+ if (!(key in node2.attrs.inputMap)) {
10667
+ return false;
10668
+ }
10666
10669
  if (node2.attrs.inputMap[key].indexOf(inputName) < 0) {
10667
10670
  return false;
10668
10671
  }
@@ -10700,7 +10703,7 @@ var dataDefaults = {
10700
10703
  redirect = strSubUrl(redirect, formData);
10701
10704
  }
10702
10705
  redirectTo(redirect);
10703
- } else if (redirect instanceof Function) {
10706
+ } else if (redirect) {
10704
10707
  redirect(formData, node2);
10705
10708
  }
10706
10709
  return true;