Cannot read properties of undefined (reading 'let-user-control-scheduling')

I went to admin page, and try to make some changes on Database connect, and got following error
Cannot read properties of undefined (reading 'let-user-control-scheduling'). Does anyone know what cause that and how to fix it? My feel it may relate to somewhere in the configure file I may missed.

You might have upgraded and downgraded without restoring a backup

I had this same problem when I updated the version of my local Metabase and my user was a superuser but wasn't listed in the Admin group. When I added the user to the Admin group, the problem was solved for me.