remix-validated-form 4.6.10 → 4.6.11
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.cjs.js +3 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/internal/hooks.ts +4 -1
package/dist/index.cjs.js
CHANGED
@@ -1073,7 +1073,9 @@ var useDefaultValuesFromLoader = ({
|
|
1073
1073
|
const matches = (0, import_react2.useMatches)();
|
1074
1074
|
if (typeof formId === "string") {
|
1075
1075
|
const dataKey = formDefaultValuesKey(formId);
|
1076
|
-
const match = matches.reverse().find(
|
1076
|
+
const match = matches.reverse().find(
|
1077
|
+
(match2) => match2.data && typeof match2.data === "object" && dataKey in match2.data
|
1078
|
+
);
|
1077
1079
|
return match == null ? void 0 : match.data[dataKey];
|
1078
1080
|
}
|
1079
1081
|
return null;
|