Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't assume fetchOptions has a
body
(#384)
The event handler in encodeMethodIntoRequestBody was failing when forms were submitted using `method="GET"`, because it assumed the presence of `fetchOptions.body`, and such forms don't have a body. Checking for the presence of `body` before accessing it avoids the crash, and the resulting console noise.
- Loading branch information