Skip to content

Conversation

@wo-o29
Copy link

@wo-o29 wo-o29 commented Oct 26, 2025

Summary

This PR fixes three code errors in the TypeScript support documentation:

  1. SubmitErrorHandler example: Fixed incorrect register() usage where the return value wasn't being spread properly due to comma operator misuse
  2. NestedValue example: Removed duplicate Autocomplete import from @material-ui/core (it only exists in @material-ui/lab)
  3. NestedValue example: Fixed field name mismatch where setValue("muiSelect", ...) was used but the form type only defines a select field

Changes

  • Fixed register spread syntax from {...(register("firstName"), { required: true })} to {...register("firstName", { required: true })}
  • Removed duplicate Autocomplete import from @material-ui/core
  • Changed setValue("muiSelect", ...) to setValue("select", ...)

@vercel
Copy link

vercel bot commented Oct 26, 2025

@wo-o29 is attempting to deploy a commit to the BEEKAI OSS Team on Vercel.

A member of the Team first needs to authorize it.

@netlify
Copy link

netlify bot commented Oct 26, 2025

Deploy Preview for sage-cassata-31d224 ready!

Name Link
🔨 Latest commit 0b40e83
🔍 Latest deploy log https://app.netlify.com/projects/sage-cassata-31d224/deploys/68fe310254511a00085076f1
😎 Deploy Preview https://deploy-preview-1175--sage-cassata-31d224.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant