remix-validated-form 4.6.10 → 4.6.11

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/dist/index.esm.js CHANGED
@@ -1030,7 +1030,9 @@ var useDefaultValuesFromLoader = ({
1030
1030
  const matches = useMatches();
1031
1031
  if (typeof formId === "string") {
1032
1032
  const dataKey = formDefaultValuesKey(formId);
1033
- const match = matches.reverse().find((match2) => match2.data && dataKey in match2.data);
1033
+ const match = matches.reverse().find(
1034
+ (match2) => match2.data && typeof match2.data === "object" && dataKey in match2.data
1035
+ );
1034
1036
  return match == null ? void 0 : match.data[dataKey];
1035
1037
  }
1036
1038
  return null;