How to reset a Select component to the default if my changes caused errors?

How do i make Select component to default if i made some changes and causes problem?
(ex: Error: Cannot read properties of undefined (reading ‘key’) error on Option Groups)

hi! can you post the full stack trace if you have it?