Skip to content

Commit

Permalink
Merge pull request #7684 from marmelab/7672-prefilling-create-form-by…
Browse files Browse the repository at this point in the history
…-using-locations-state-or-search-does-not-work

Fix Prefilling the Form example
  • Loading branch information
fzaninotto committed May 11, 2022
2 parents c3d490e + 1f82821 commit a99d014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Create.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,8 @@ const CreateRelatedCommentButton = ({ record }) => (
component={Link}
to={{
pathname: '/comments/create',
state: { record: { post_id: record.id } },
}}
state={{ record: { post_id: record.id } }}
>
Write a comment for that post
</Button>
Expand Down

0 comments on commit a99d014

Please sign in to comment.