Skip to content

Commit

Permalink
fix: patch runtime error
Browse files Browse the repository at this point in the history
  • Loading branch information
airjp73 committed Sep 25, 2023
1 parent b31287a commit 82de730
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/remix-validated-form/src/internal/hooks.ts
Expand Up @@ -71,7 +71,7 @@ export const useDefaultValuesFromLoader = ({
(match) =>
match.data && typeof match.data === "object" && dataKey in match.data
);
return (match?.data as any)[dataKey];
return (match as any)?.data[dataKey];
}

return null;
Expand Down

1 comment on commit 82de730

@vercel
Copy link

@vercel vercel bot commented on 82de730 Sep 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.