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.
@@ -5897,6 +5897,9 @@ const dataDefaults = {
5897
5897
  if (!node || !key || !node.attrs.inputMap) {
5898
5898
  return true;
5899
5899
  }
5900
+ if (!(key in node.attrs.inputMap)) {
5901
+ return false;
5902
+ }
5900
5903
  if (node.attrs.inputMap[key].indexOf(inputName) < 0) {
5901
5904
  return false;
5902
5905
  }
@@ -5930,7 +5933,7 @@ const dataDefaults = {
5930
5933
  redirect = strSubUrl(redirect, formData);
5931
5934
  }
5932
5935
  redirectTo(redirect);
5933
- } else if (redirect instanceof Function) {
5936
+ } else if (redirect) {
5934
5937
  redirect(formData, node);
5935
5938
  }
5936
5939
  return true;